summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-27 09:31:13 -0400
committerLioncash <mathew1800@gmail.com>2019-05-27 09:36:31 -0400
commitb15f595130c22c595464707a372132fc8e7ea72b (patch)
tree19c8351b195ac3556a8ecc5586a20bc5cae0792a /Source/Core/VideoCommon/RenderBase.cpp
parent8dc8cf8019339b15a00ac244ce36aa387a23bbb9 (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
0 files changed, 0 insertions, 0 deletions