summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index b9b59145ff..10f3b9f293 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -553,16 +553,16 @@ void TextureCacheBase::DoSaveState(PointerWrap& p)
{
if (ShouldSaveEntry(it.second))
{
- u32 id = AddCacheEntryToMap(it.second);
- textures_by_address_list.push_back(std::make_pair(it.first, id));
+ const u32 id = AddCacheEntryToMap(it.second);
+ textures_by_address_list.emplace_back(it.first, id);
}
}
for (const auto& it : textures_by_hash)
{
if (ShouldSaveEntry(it.second))
{
- u32 id = AddCacheEntryToMap(it.second);
- textures_by_hash_list.push_back(std::make_pair(it.first, id));
+ const u32 id = AddCacheEntryToMap(it.second);
+ textures_by_hash_list.emplace_back(it.first, id);
}
}
}