summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-16 14:52:40 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-16 14:52:50 +0200
commit0c9c1107ad673bc9a4977d57041c936678429a1e (patch)
treea13516c5c19005fc4a8a0056d9818ca2189da732 /src
parentd08e5d1a943b65ece5ca519c200ab2c0359f51d7 (diff)
app: some more constructor security
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/app.cpp1
-rw-r--r--src/app.hpp4
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<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();