Browse Source

Platform: fix a variable shadowing warning on MSVC.

I have a feeling that I fixed this once already. Where did that go?
pull/268/head
Vladimír Vondruš 8 years ago
parent
commit
37e92ffd6d
  1. 4
      src/Magnum/Platform/Sdl2Application.cpp

4
src/Magnum/Platform/Sdl2Application.cpp

@ -482,7 +482,7 @@ void Sdl2Application::mainLoopIteration() {
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif #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 #ifndef CORRADE_TARGET_EMSCRIPTEN
, 0 , 0
#endif #endif
@ -490,7 +490,7 @@ void Sdl2Application::mainLoopIteration() {
#ifdef __GNUC__ #ifdef __GNUC__
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif
mousePressEvent(e); mousePressEvent(ew);
} }
#endif #endif
} break; } break;

Loading…
Cancel
Save