Skip to content
Permalink
Browse files

VideoCommon/TextureCacheBase: Use emplace_back where applicable

Same thing, less code.
  • Loading branch information...
lioncash committed Aug 5, 2019
1 parent fd12ae1 commit d52dd2e04f9e6e5dd7c690e5a485d7b32d61e7de
Showing with 4 additions and 4 deletions.
  1. +4 −4 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);
}
}
}

0 comments on commit d52dd2e

Please sign in to comment.
You can’t perform that action at this time.