Skip to content

Commit 695bc18

Browse files
committed
avoid a useless copy
1 parent cf8103e commit 695bc18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/graphics/SceneManager.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ namespace gf {
380380
break;
381381
}
382382

383-
auto actual_event = *event;
383+
const Event& actual_event = *event;
384384
std::for_each(scenes.begin(), scenes.end(), [&actual_event](auto* scene) { scene->process_event(actual_event); });
385385
}
386386

0 commit comments

Comments
 (0)