From 0c9c1107ad673bc9a4977d57041c936678429a1e Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Wed, 16 Aug 2017 14:52:40 +0200 Subject: [PATCH] app: some more constructor security Signed-off-by: Marcus Fritzsch --- src/app.cpp | 1 - src/app.hpp | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.cpp b/src/app.cpp index 779997a..db0a5e3 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -297,7 +297,6 @@ void App::surface_set_layout(uint32_t surface_id) { if (h < 0) { h = this->controller->output_size.h + 1 + h; } - logdebug("Computed rect={ %d, %d, %d, %d }", x, y, w, h); // configure surface to wxh dimensions s->set_configuration(w, h); diff --git a/src/app.hpp b/src/app.hpp index 1926ca4..90ab42c 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -56,11 +56,13 @@ struct App { typedef std::pair> name_task_pair; std::vector pending; - App(wl::display *d); + explicit App(wl::display *d); ~App(); App(App const &) = delete; App &operator=(App const &) = delete; + App(App &&) = delete; + App &operator=(App &&) = delete; int init(); int dispatch_events(); -- 2.16.6