aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-11-27 15:18:46 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-11-27 15:18:46 +0100
commit6ad2b0aa0196b3883a8102c97bb9eaa8d77f8de8 (patch)
tree7e9595420b69de2dec1b8bd4e76d9896cf6b6451
parent0a98360c38431ccea2679955dd0e43af129d0256 (diff)
Fix: reduced scope and invalidate value
c/c leads to redefine a variable already declared before Change-Id: Iee94c38ed78e2d780448b5a43a8883a19a8f4474 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--src/app.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 324825f..fcdda1f 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -598,7 +598,7 @@ void App::surface_created(uint32_t surface_id) {
if (!layer_id) {
HMI_DEBUG("wm", "Newly created surface %d is not associated with any layer! Must be a XDG apps",
surface_id);
- auto layer_id = this->layers.get_layer_id(XDG_DRAWING_NAME);
+ layer_id = this->layers.get_layer_id(XDG_DRAWING_NAME);
if(!layer_id)
{
HMI_DEBUG("wm", "No role found for that XDG App");