diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-13 12:13:22 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-14 14:04:51 +0200 |
commit | 54b0edd597c6e7788d18e4e6ca7ac74bff9dcbf5 (patch) | |
tree | 94464b78c371cb9bcbdace648bb8801e46c28b3b | |
parent | 26aa79a5577596811a2b949ff7fef6aa49b64d20 (diff) |
app: a couple of style fixes + format
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r-- | src/app.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/app.cpp b/src/app.cpp index 4bd7393..240c7e4 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -376,7 +376,7 @@ char const *App::api_activate_surface(char const *drawing_name) { auto o_state = *this->layers.get_layout_state(*surface_id); - if (!o_state) { + if (o_state == nullptr) { return "Could not find layer for surface"; } @@ -482,7 +482,7 @@ char const *App::api_deactivate_surface(char const *drawing_name) { auto o_state = *this->layers.get_layout_state(*surface_id); - if (!o_state) { + if (o_state == nullptr) { return "Could not find layer for surface"; } @@ -742,7 +742,7 @@ bool App::can_split(struct LayoutState const &state, int new_id) { return false; } -void App::try_layout(struct LayoutState &state, +void App::try_layout(struct LayoutState & /*state*/, struct LayoutState const &new_layout, std::function<void(LayoutState const &nl)> apply) { if (this->policy.layout_is_valid(new_layout)) { @@ -764,10 +764,13 @@ void controller_hooks::surface_removed(uint32_t surface_id) { this->app->surface_removed(surface_id); } -void controller_hooks::surface_visibility(uint32_t surface_id, uint32_t v) { -} +void controller_hooks::surface_visibility(uint32_t /*surface_id*/, + uint32_t /*v*/) {} -void controller_hooks::surface_destination_rectangle(uint32_t surface_id, uint32_t x, uint32_t y, uint32_t w, uint32_t h) { -} +void controller_hooks::surface_destination_rectangle(uint32_t /*surface_id*/, + uint32_t /*x*/, + uint32_t /*y*/, + uint32_t /*w*/, + uint32_t /*h*/) {} } // namespace wm |