main: c++-ifiy struct conn c init
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Fri, 23 Jun 2017 13:11:57 +0000 (15:11 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/main.cpp

index dc67f94..91b0c50 100644 (file)
@@ -131,7 +131,7 @@ int main(int argc, char **argv) {
    if (!d->ok())
       fatal("Could not connect to compositor");
 
-   struct conn c = {};
+   struct conn c{};
 
    d->r->add_global_handler(
       "ivi_controller", [&c](wl_registry *r, uint32_t name, uint32_t v) {