summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-26 12:18:31 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit0794731455fbf919882c8a9cc03dd42c66117a93 (patch)
treec0117ef90dbed59d8297d72ebd89153d9cebe420 /src/main.cpp
parent02698c25c7c553b6293b42fc28753c7578745dcd (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/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9b2f48a..146020e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -127,12 +127,12 @@ int main(int argc, char **argv) {
struct conn c{};
- d->r->add_global_handler(
+ d->r.add_global_handler(
"ivi_controller", [&c](wl_registry *r, uint32_t name, uint32_t v) {
c.c = std::make_unique<genivi::controller>(r, name, v);
});
- d->r->add_global_handler(
+ d->r.add_global_handler(
"wl_output", [&c](wl_registry *r, uint32_t name, uint32_t v) {
c.outputs.emplace_back(std::make_unique<wl::output>(r, name, v));
});