clang-tidy: range loop conversions
Found with: modernize-loop-convert Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Luis Díaz Más
parent
44256e8c5d
commit
8e52032ee0
@@ -211,11 +211,8 @@ void push(Jzon::Node& node,const std::string& key,T i)
|
||||
ABORT_IF_I_EMTPY
|
||||
Jzon::Object l ;
|
||||
const Exiv2::LangAltValue& langs = dynamic_cast<const Exiv2::LangAltValue&>(i->value());
|
||||
for ( Exiv2::LangAltValue::ValueType::const_iterator lang = langs.value_.begin()
|
||||
; lang != langs.value_.end()
|
||||
; lang++
|
||||
) {
|
||||
l.Add(lang->first,lang->second);
|
||||
for (auto&& lang : langs.value_) {
|
||||
l.Add(lang.first, lang.second);
|
||||
}
|
||||
Jzon::Object o ;
|
||||
o.Add("lang",l);
|
||||
@@ -350,10 +347,8 @@ int main(int argc, char* const argv[])
|
||||
|
||||
// create and populate a Jzon::Object for the namespaces
|
||||
Jzon::Object xmlns;
|
||||
for ( auto it = namespaces.begin() ; it != namespaces.end() ; it++ ) {
|
||||
std::string ns = *it ;
|
||||
std::string uri = nsDict[ns];
|
||||
xmlns.Add(ns,uri);
|
||||
for (auto&& ns : namespaces) {
|
||||
xmlns.Add(ns, nsDict[ns]);
|
||||
}
|
||||
|
||||
// add xmlns as Xmp.xmlns
|
||||
|
||||
Reference in New Issue
Block a user