diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-06-26 12:18:31 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 0794731455fbf919882c8a9cc03dd42c66117a93 (patch) | |
tree | c0117ef90dbed59d8297d72ebd89153d9cebe420 /src/wayland.cpp | |
parent | 02698c25c7c553b6293b42fc28753c7578745dcd (diff) |
wayland: one less level of unique_ptr
Display now holds struct registry by value, as holding it through a
unique_ptr was rather unnecessary.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r-- | src/wayland.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp index 0862475..baf1aaa 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -22,7 +22,7 @@ display::display() logdebug("wl::display ~display @ %p", d); wl_display_disconnect(d); })), - r(!d ? nullptr : std::make_unique<struct registry>(d.get())) {} + r(d.get()) {} display::~display() {} |