wayland: one less level of unique_ptr
[staging/windowmanager.git] / src / wayland.cpp
index 0862475..baf1aaa 100644 (file)
@@ -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() {}