From 37e92ffd6d4b20bca4751892df632399ccd1bdfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 4 Aug 2018 22:58:07 +0200 Subject: [PATCH] Platform: fix a variable shadowing warning on MSVC. I have a feeling that I fixed this once already. Where did that go? --- src/Magnum/Platform/Sdl2Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp index b3471d89c..15b3fb695 100644 --- a/src/Magnum/Platform/Sdl2Application.cpp +++ b/src/Magnum/Platform/Sdl2Application.cpp @@ -482,7 +482,7 @@ void Sdl2Application::mainLoopIteration() { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif - MouseEvent e(event.wheel.y > 0 ? MouseEvent::Button::WheelUp : MouseEvent::Button::WheelDown, {event.wheel.x, event.wheel.y} + MouseEvent ew(event.wheel.y > 0 ? MouseEvent::Button::WheelUp : MouseEvent::Button::WheelDown, {event.wheel.x, event.wheel.y} #ifndef CORRADE_TARGET_EMSCRIPTEN , 0 #endif @@ -490,7 +490,7 @@ void Sdl2Application::mainLoopIteration() { #ifdef __GNUC__ #pragma GCC diagnostic pop #endif - mousePressEvent(e); + mousePressEvent(ew); } #endif } break;