mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
VideoCommon/TextureCacheBase: Use emplace_back where applicable
Same thing, less code.
This commit is contained in:
parent
fd12ae1408
commit
d52dd2e04f
1 changed files with 4 additions and 4 deletions
|
@ -553,16 +553,16 @@ void TextureCacheBase::DoSaveState(PointerWrap& p)
|
||||||
{
|
{
|
||||||
if (ShouldSaveEntry(it.second))
|
if (ShouldSaveEntry(it.second))
|
||||||
{
|
{
|
||||||
u32 id = AddCacheEntryToMap(it.second);
|
const u32 id = AddCacheEntryToMap(it.second);
|
||||||
textures_by_address_list.push_back(std::make_pair(it.first, id));
|
textures_by_address_list.emplace_back(it.first, id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const auto& it : textures_by_hash)
|
for (const auto& it : textures_by_hash)
|
||||||
{
|
{
|
||||||
if (ShouldSaveEntry(it.second))
|
if (ShouldSaveEntry(it.second))
|
||||||
{
|
{
|
||||||
u32 id = AddCacheEntryToMap(it.second);
|
const u32 id = AddCacheEntryToMap(it.second);
|
||||||
textures_by_hash_list.push_back(std::make_pair(it.first, id));
|
textures_by_hash_list.emplace_back(it.first, id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue