summaryrefslogtreecommitdiff
path: root/src/x.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2017-10-31 15:01:57 +0100
committerJoel Klinghed <the_jk@opera.com>2017-10-31 15:01:57 +0100
commit38140372d8c8dd32267943d5d79b2ce2c0a032fb (patch)
tree0e2555e591092f934e05451ef4a6df18c5ddc739 /src/x.hh
parent2e5352a1128da3ff4637561788a7da8e6b24ab9c (diff)
Use std::make_unique
Diffstat (limited to 'src/x.hh')
-rw-r--r--src/x.hh5
1 files changed, 3 insertions, 2 deletions
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<Atoms> 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<Ewmh> create(
+ shared_connection const& conn, int screen);
virtual xcb_ewmh_connection_t* conn() = 0;
virtual bool supported(xcb_atom_t atom) = 0;