Skip to content

Commit

Permalink
auto window - const and & (openframeworks#6913)
Browse files Browse the repository at this point in the history
#changelog #app
  • Loading branch information
dimitre authored May 26, 2022
1 parent 1b6830a commit 39166af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/app/ofMainLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void ofMainLoop::loopOnce(){
if(bShouldClose) return;
for(auto i = windowsApps.begin(); !windowsApps.empty() && i != windowsApps.end();){
if(i->first->getWindowShouldClose()){
auto window = i->first;
const auto & window = i->first;
windowsApps.erase(i++); ///< i now points at the window after the one which was just erased
window->close();
}else{
Expand Down

0 comments on commit 39166af

Please sign in to comment.