Made code -Wshadow clean
[supertux.git] / src / gui / menu.cpp
index ec3c9db..f2347cb 100644 (file)
@@ -657,13 +657,13 @@ Menu::set_toggled(int id, bool toggled)
 }
 
 void
-Menu::event(const SDL_Event& event)
+Menu::event(const SDL_Event& ev)
 {
-  switch(event.type) {
+  switch(ev.type) {
     case SDL_MOUSEBUTTONDOWN:
-    if(event.button.button == SDL_BUTTON_LEFT)
+    if(ev.button.button == SDL_BUTTON_LEFT)
     {
-      Vector mouse_pos = Renderer::instance()->to_logical(event.motion.x, event.motion.y);
+      Vector mouse_pos = Renderer::instance()->to_logical(ev.motion.x, ev.motion.y);
       int x = int(mouse_pos.x);
       int y = int(mouse_pos.y);
 
@@ -679,7 +679,7 @@ Menu::event(const SDL_Event& event)
 
     case SDL_MOUSEMOTION:
     {
-      Vector mouse_pos = Renderer::instance()->to_logical(event.motion.x, event.motion.y);
+      Vector mouse_pos = Renderer::instance()->to_logical(ev.motion.x, ev.motion.y);
       float x = mouse_pos.x;
       float y = mouse_pos.y;