From 16c37abf79462765a3573ea3eb470a38e48c8dbf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 31 Mar 2020 13:24:34 -0400 Subject: [PATCH] DNAMP3: Prevent unnecessary copies --- DataSpec/DNAMP3/DNAMP3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataSpec/DNAMP3/DNAMP3.cpp b/DataSpec/DNAMP3/DNAMP3.cpp index 05158846c..a2b8199b0 100644 --- a/DataSpec/DNAMP3/DNAMP3.cpp +++ b/DataSpec/DNAMP3/DNAMP3.cpp @@ -157,7 +157,7 @@ void PAKBridge::build() { } void PAKBridge::addCMDLRigPairs(PAKRouter& pakRouter, CharacterAssociations& charAssoc) const { - for (const std::pair& entry : m_pak.m_entries) { + for (const auto& entry : m_pak.m_entries) { if (entry.second.type == FOURCC('CHAR')) { PAKEntryReadStream rs = entry.second.beginReadStream(m_node); CHAR aChar; @@ -180,7 +180,7 @@ static const atVec4f BottomRow = {{0.f, 0.f, 0.f, 1.f}}; void PAKBridge::addMAPATransforms(PAKRouter& pakRouter, std::unordered_map& addTo, std::unordered_map& pathOverrides) const { - for (const std::pair& entry : m_pak.m_entries) { + for (const auto& entry : m_pak.m_entries) { if (entry.second.type == FOURCC('MLVL')) { MLVL mlvl; {