From 38140372d8c8dd32267943d5d79b2ce2c0a032fb Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 31 Oct 2017 15:01:57 +0100 Subject: Use std::make_unique --- src/x.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/x.hh') diff --git a/src/x.hh b/src/x.hh index 00751c2..27ac745 100644 --- a/src/x.hh +++ b/src/x.hh @@ -247,7 +247,7 @@ class Atoms { public: virtual ~Atoms() {} - static Atoms* create(shared_connection const& conn); + static std::unique_ptr create(shared_connection const& conn); virtual void preload(std::string const& name, bool create = true) = 0; virtual xcb_atom_t get(std::string const& name, bool create = true) = 0; @@ -262,7 +262,8 @@ class Ewmh { public: virtual ~Ewmh() {} - static Ewmh* create(shared_connection const& conn, int screen); + static std::unique_ptr create( + shared_connection const& conn, int screen); virtual xcb_ewmh_connection_t* conn() = 0; virtual bool supported(xcb_atom_t atom) = 0; -- cgit v1.3