Skip to content

Commit b636836

Browse files
committed
Fixed shadowing on gcc
Signed-off-by: Jared Duffey <[email protected]>
1 parent d775887 commit b636836

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/simplnx/Utilities/MessageHelper.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,20 @@ class ThrottleSink : public spdlog::sinks::base_sink<Mutex>
113113
return;
114114
}
115115

116-
for(auto& sink : m_Sinks)
116+
for(auto& childSink : m_Sinks)
117117
{
118-
if(sink->should_log(msg.level))
118+
if(childSink->should_log(msg.level))
119119
{
120-
sink->log(msg);
120+
childSink->log(msg);
121121
}
122122
}
123123
}
124124

125125
void flush_() override
126126
{
127-
for(auto& sink : m_Sinks)
127+
for(auto& childSink : m_Sinks)
128128
{
129-
sink->flush();
129+
childSink->flush();
130130
}
131131
}
132132

0 commit comments

Comments
 (0)