diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-08-04 23:28:11 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-08-04 23:28:14 -0400 |
| commit | d52dd2e04f9e6e5dd7c690e5a485d7b32d61e7de (patch) | |
| tree | 0a68620d3aa963ad0f2cea8b302b44f51ff86057 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | fd12ae1408f5e19a23cee6df4727a7b70ef0d312 (diff) | |
VideoCommon/TextureCacheBase: Use emplace_back where applicable
Same thing, less code.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 8 |
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); } } } |
