From 6ad2b0aa0196b3883a8102c97bb9eaa8d77f8de8 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 27 Nov 2017 15:18:46 +0100 Subject: Fix: reduced scope and invalidate value c/c leads to redefine a variable already declared before Change-Id: Iee94c38ed78e2d780448b5a43a8883a19a8f4474 Signed-off-by: Romain Forlot --- src/app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit 1.2.3-korg