# HG changeset patch # User Benjamin Golinvaux # Date 1584431865 -3600 # Node ID 0290b7060167ae06dcdfa82c5345efb35c2b1f2e # Parent cbfdba08e039556e591c3589a61067cfc10b30ec Build fix C++03 diff -r cbfdba08e039 -r 0290b7060167 Applications/Generic/GuiAdapter.cpp --- a/Applications/Generic/GuiAdapter.cpp Tue Mar 17 08:40:13 2020 +0100 +++ b/Applications/Generic/GuiAdapter.cpp Tue Mar 17 08:57:45 2020 +0100 @@ -681,7 +681,7 @@ if (sendEvent) { - auto func = sdlEventHandlers_[i].func; + OnSdlEventCallback func = sdlEventHandlers_[i].func; (*func)(canvasName, sdlEvent, sdlEventHandlers_[i].userData); } } @@ -913,12 +913,13 @@ } // SECOND: collect all user events - for (auto& it : userEventsMap) - sdlEvents.push_back(it.second); + for (std::map::const_iterator it = userEventsMap.begin(); it != userEventsMap.end(); ++it) + sdlEvents.push_back(it->second); // now process the events - for(const SDL_Event& sdlEvent : sdlEvents) + for (std::vector::const_iterator it = sdlEvents.begin(); it != sdlEvents.end(); ++it) { + const SDL_Event& sdlEvent = *it; // TODO: lock all viewports here! (use a scoped object) if (sdlEvent.type == SDL_QUIT)