From e39d17d09ea24ca0aaf440a1eae3e5148b8294a3 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Thu, 12 Nov 2020 15:34:03 +0100 Subject: [PATCH] Apply suggestions from -Wrange-loop-analysis --- fairmq/plugins/DDS/DDS.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fairmq/plugins/DDS/DDS.cxx b/fairmq/plugins/DDS/DDS.cxx index a3ee39e2..9d396552 100644 --- a/fairmq/plugins/DDS/DDS.cxx +++ b/fairmq/plugins/DDS/DDS.cxx @@ -357,7 +357,7 @@ auto DDS::HandleCmd(const string& id, sdk::cmd::Cmd& cmd, const string& cond, ui } break; case Type::dump_config: { stringstream ss; - for (const auto pKey : GetPropertyKeys()) { + for (const auto& pKey : GetPropertyKeys()) { ss << id << ": " << pKey << " -> " << GetPropertyAsString(pKey) << "\n"; } Cmds outCmds(make(id, ss.str()));