diff --git a/apps/esmtool/record.cpp b/apps/esmtool/record.cpp index cfd658fc9..c5153dadb 100644 --- a/apps/esmtool/record.cpp +++ b/apps/esmtool/record.cpp @@ -739,7 +739,7 @@ void Record::print() std::cout << " Faction Reaction: " << mData.mData.mRankData[i].mFactReaction << std::endl; } - for (const std::pair &reaction : mData.mReactions) + for (const auto &reaction : mData.mReactions) std::cout << " Reaction: " << reaction.second << " = " << reaction.first << std::endl; std::cout << " Deleted: " << mIsDeleted << std::endl; } diff --git a/apps/opencs/model/world/data.cpp b/apps/opencs/model/world/data.cpp index da46ea876..8fa449b8f 100644 --- a/apps/opencs/model/world/data.cpp +++ b/apps/opencs/model/world/data.cpp @@ -1006,7 +1006,7 @@ void CSMWorld::Data::loadFallbackEntries() std::make_pair("PrisonMarker", "marker_prison.nif") }; - for (const std::pair &marker : staticMarkers) + for (const auto &marker : staticMarkers) { if (mReferenceables.searchId (marker.first)==-1) { @@ -1020,7 +1020,7 @@ void CSMWorld::Data::loadFallbackEntries() } } - for (const std::pair &marker : doorMarkers) + for (const auto &marker : doorMarkers) { if (mReferenceables.searchId (marker.first)==-1) { diff --git a/apps/openmw/mwrender/npcanimation.cpp b/apps/openmw/mwrender/npcanimation.cpp index 6baf99e56..5fad40a9a 100644 --- a/apps/openmw/mwrender/npcanimation.cpp +++ b/apps/openmw/mwrender/npcanimation.cpp @@ -790,7 +790,7 @@ bool NpcAnimation::addOrReplaceIndividualPart(ESM::PartReferenceType type, int g osg::Object* obj = node->getUserDataContainer()->getUserObject(i); if (NifOsg::TextKeyMapHolder* keys = dynamic_cast(obj)) { - for (const std::pair &key : keys->mTextKeys) + for (const auto &key : keys->mTextKeys) { if (Misc::StringUtils::ciEqual(key.second, "talk: start")) mHeadAnimationTime->setTalkStart(key.first); diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index d8576800d..24e8cb43c 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -470,7 +470,7 @@ namespace MWWorld gmst["iWereWolfBounty"] = ESM::Variant(1000); gmst["fCombatDistanceWerewolfMod"] = ESM::Variant(0.3f); - for (const std::pair ¶ms : gmst) + for (const auto ¶ms : gmst) { if (!mStore.get().search(params.first)) { @@ -500,7 +500,7 @@ namespace MWWorld globals["crimegoldturnin"] = ESM::Variant(0); globals["pchasturnin"] = ESM::Variant(0); - for (const std::pair ¶ms : globals) + for (const auto ¶ms : globals) { if (!mStore.get().search(params.first)) { @@ -519,7 +519,7 @@ namespace MWWorld statics["templemarker"] = "marker_temple.nif"; statics["travelmarker"] = "marker_travel.nif"; - for (const std::pair ¶ms : statics) + for (const auto ¶ms : statics) { if (!mStore.get().search(params.first)) { @@ -533,7 +533,7 @@ namespace MWWorld std::map doors; doors["prisonmarker"] = "marker_prison.nif"; - for (const std::pair ¶ms : doors) + for (const auto ¶ms : doors) { if (!mStore.get().search(params.first)) {