Explorar o código

CGuiHandler: fix false positive dangling pointer

Making this an auto variable fixes compilation with Werror.
Konstantin %!s(int64=2) %!d(string=hai) anos
pai
achega
a7bd7232ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/gui/CGuiHandler.cpp

+ 1 - 1
client/gui/CGuiHandler.cpp

@@ -192,7 +192,7 @@ void CGuiHandler::handleEvents()
 	while(!SDLEventsQueue.empty())
 	{
 		continueEventHandling = true;
-		SDL_Event ev = SDLEventsQueue.front();
+		auto ev = SDLEventsQueue.front();
 		current = &ev;
 		SDLEventsQueue.pop();