Apply suggestions from -Wrange-loop-analysis

This commit is contained in:
Alexey Rybalchenko 2020-11-12 15:34:03 +01:00 committed by Dennis Klein
parent a14502242f
commit e39d17d09e

View File

@ -357,7 +357,7 @@ auto DDS::HandleCmd(const string& id, sdk::cmd::Cmd& cmd, const string& cond, ui
} break; } break;
case Type::dump_config: { case Type::dump_config: {
stringstream ss; stringstream ss;
for (const auto pKey : GetPropertyKeys()) { for (const auto& pKey : GetPropertyKeys()) {
ss << id << ": " << pKey << " -> " << GetPropertyAsString(pKey) << "\n"; ss << id << ": " << pKey << " -> " << GetPropertyAsString(pKey) << "\n";
} }
Cmds outCmds(make<Config>(id, ss.str())); Cmds outCmds(make<Config>(id, ss.str()));