diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-06 18:05:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-06 18:05:06 +0200 |
commit | 7eaf8b17dd3020c54ab58ae513c1175c95d5ccce (patch) | |
tree | bdf66afe5dff12131d6369d0dcc6ce6b6b641c7c /desktop/source | |
parent | Silence loplugin:staticmethods under --disable-debug (diff) | |
download | core-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.cxx | 2 |
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"); |