dolphin/Source/Core
Lioncash b15f595130 Common/HttpRequest: Avoid unnecessary copies in loop in Fetch()
Previously, every entry pair within the map would be copied. The reason
for this is subtle.

A std::map's internal entry type is defined as:

std::pair<const Key, Value>

but the loop was declaring it as:

std::pair<Key, Value>

These two types aren't synonymous with one another and so the compiler
is required to always perform a copy.

Using structured bindings avoids this (as would plain auto or correcting
the explicit type), while also allowing the use of more appropriate
names compared to first and second.
2019-05-27 09:36:31 -04:00
..
AudioCommon Merge pull request #8087 from spycrab/cmake_win2019 2019-05-14 21:07:26 +02:00
Common Common/HttpRequest: Avoid unnecessary copies in loop in Fetch() 2019-05-27 09:36:31 -04:00
Core GCMemcardDirectory: Improve logic for which files are loaded into the virtual memory card. 2019-05-25 21:51:36 +02:00
DiscIO Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
DolphinNoGUI Update Discord rich presence when the title changes 2019-05-24 14:12:48 +02:00
DolphinQt Merge pull request #7799 from Tilka/mapping 2019-05-26 18:10:06 +02:00
InputCommon Merge pull request #7992 from artemist/centering 2019-05-20 18:29:31 +02:00
MacUpdater Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
UICommon UICommon/VideoUtils.cpp: Add missing include 2019-05-08 21:00:23 +02:00
UpdaterCommon UpdaterCommon: Move most of the programs here 2019-03-03 15:02:44 +01:00
VideoBackends Also free when initialization fails, and move to end 2019-05-26 19:59:29 -07:00
VideoCommon Merge pull request #8069 from iwubcode/passive_support 2019-05-12 15:15:34 +10:00
WinUpdater WinUpdater: Add CMakeLists.txt 2019-05-08 23:59:04 +02:00
CMakeLists.txt WinUpdater: Add CMakeLists.txt 2019-05-08 23:59:04 +02:00