Skip to content

Commit e4b04f8

Browse files
committed
cppcheck
1 parent 65c1b3d commit e4b04f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/RepeatScalingModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void RepeatScalingModule::noteScheduled(NodeNum sender, PacketId id, int32_t por
143143

144144
int32_t RepeatScalingModule::lookupNotedPortnum(NodeNum sender, PacketId id) const
145145
{
146-
for (auto &entry : dupeCounts) {
146+
for (const auto &entry : dupeCounts) {
147147
if (entry.id == id && entry.sender == sender)
148148
return entry.portnum;
149149
}
@@ -158,7 +158,7 @@ int32_t RepeatScalingModule::resolvePortnum(const meshtastic_MeshPacket *p) cons
158158

159159
uint8_t RepeatScalingModule::getToleratedDupeCount(NodeNum sender, PacketId id) const
160160
{
161-
for (auto &entry : dupeCounts) {
161+
for (const auto &entry : dupeCounts) {
162162
if (entry.id == id && entry.sender == sender)
163163
return entry.count;
164164
}

0 commit comments

Comments
 (0)