diff options
| author | Joel Klinghed <the_jk@opera.com> | 2017-10-31 15:01:57 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@opera.com> | 2017-10-31 15:01:57 +0100 |
| commit | 38140372d8c8dd32267943d5d79b2ce2c0a032fb (patch) | |
| tree | 0e2555e591092f934e05451ef4a6df18c5ddc739 /src/x.hh | |
| parent | 2e5352a1128da3ff4637561788a7da8e6b24ab9c (diff) | |
Use std::make_unique
Diffstat (limited to 'src/x.hh')
| -rw-r--r-- | src/x.hh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |
