diff --git a/fairmq/FairMQChannel.cxx b/fairmq/FairMQChannel.cxx index aa971f50..69b13afb 100644 --- a/fairmq/FairMQChannel.cxx +++ b/fairmq/FairMQChannel.cxx @@ -381,7 +381,7 @@ try { } else { vector endpoints; boost::algorithm::split(endpoints, fAddress, boost::algorithm::is_any_of(";")); - for (const auto endpoint : endpoints) { + for (const auto& endpoint : endpoints) { string address; if (endpoint[0] == '@' || endpoint[0] == '+' || endpoint[0] == '>') { address = endpoint.substr(1);