app: some more constructor security
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Wed, 16 Aug 2017 12:52:40 +0000 (14:52 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Wed, 16 Aug 2017 12:52:50 +0000 (14:52 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/app.cpp
src/app.hpp

index 779997a..db0a5e3 100644 (file)
@@ -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);
index 1926ca4..90ab42c 100644 (file)
@@ -56,11 +56,13 @@ struct App {
    typedef std::pair<char const *, std::function<void()>> name_task_pair;
    std::vector<name_task_pair> 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();