summaryrefslogtreecommitdiffstats
path: root/desktop/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-06 18:05:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-06 18:05:06 +0200
commit7eaf8b17dd3020c54ab58ae513c1175c95d5ccce (patch)
treebdf66afe5dff12131d6369d0dcc6ce6b6b641c7c /desktop/source
parentSilence loplugin:staticmethods under --disable-debug (diff)
downloadcore-7eaf8b17dd3020c54ab58ae513c1175c95d5ccce.tar.gz
core-7eaf8b17dd3020c54ab58ae513c1175c95d5ccce.zip
clang-tidy performance-implicit-cast-in-loop
...where the first component of the pair returned by the iterator would be const, so an implicit conversion would be required. Change-Id: I62b6ddd799261e1dd63ea5c42a85d8b071f8b8b7
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index a6640d078b17..352ccd595a99 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -269,7 +269,7 @@ static std::vector<beans::PropertyValue> jsonToPropertyValuesVector(const char*
std::stringstream aStream(pJSON);
boost::property_tree::read_json(aStream, aTree);
- for (const std::pair<std::string, boost::property_tree::ptree>& rPair : aTree)
+ for (const auto& rPair : aTree)
{
const std::string& rType = rPair.second.get<std::string>("type");
const std::string& rValue = rPair.second.get<std::string>("value");