Fix for clang's -Wrange-loop-construct.
This commit is contained in:
parent
c3a5763f03
commit
a89340bd44
1 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ bool fire_event(const ui_event event,
|
|||
bool halt = false;
|
||||
|
||||
/***** ***** ***** Pre ***** ***** *****/
|
||||
for(const auto [chain_target, chain_event] : utils::reversed_view(event_chain)) {
|
||||
for(const auto& [chain_target, chain_event] : utils::reversed_view(event_chain)) {
|
||||
const auto& signal = dispatcher_implementation::event_signal<T>(*chain_target, chain_event);
|
||||
|
||||
for(const auto& pre_func : signal.pre_child) {
|
||||
|
@ -300,7 +300,7 @@ bool fire_event(const ui_event event,
|
|||
}
|
||||
|
||||
/***** ***** ***** Post ***** ***** *****/
|
||||
for(const auto [chain_target, chain_event] : event_chain) {
|
||||
for(const auto& [chain_target, chain_event] : event_chain) {
|
||||
const auto& signal = dispatcher_implementation::event_signal<T>(*chain_target, chain_event);
|
||||
|
||||
for(const auto& post_func : signal.post_child) {
|
||||
|
|
Loading…
Add table
Reference in a new issue