don't use iterator for main loop
This commit is contained in:
@@ -38,8 +38,8 @@ void App::run() {
|
|||||||
// Main loop
|
// Main loop
|
||||||
while (!done && !modules.empty()) {
|
while (!done && !modules.empty()) {
|
||||||
|
|
||||||
for(auto it = modules.begin(); it != modules.end(); it++) {
|
for(auto m : modules) {
|
||||||
(*it)->run();
|
m->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
for(auto it = toClose.begin(); it != modules.end(); it++) {
|
for(auto it = toClose.begin(); it != modules.end(); it++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user