mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
VideoCommon/TextureCacheBase: Use emplace_back where applicable
Same thing, less code.
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user