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
..
2016-12-06 20:33:53 +01:00
2018-10-28 17:57:46 +00:00
2019-02-02 19:40:31 -06:00
2018-05-27 18:48:09 -04:00
2019-05-12 00:05:08 +02:00
2018-08-15 12:12:19 -05:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2018-09-29 22:52:29 -07:00
2019-05-05 21:43:45 +01:00
2018-04-12 21:28:39 +02:00
2018-04-12 21:28:39 +02:00
2018-08-13 12:17:56 -07:00
2018-04-12 21:28:39 +02:00
2019-05-06 18:48:04 +00:00
2019-04-23 19:02:41 -05:00
2016-07-16 22:48:46 +02:00
2017-08-03 13:29:59 -07:00
2019-04-08 07:06:21 -04:00
2019-04-08 07:06:21 -04:00
2018-04-12 21:28:39 +02:00
2018-05-31 17:54:43 +02:00
2018-04-12 21:28:39 +02:00
2018-05-11 09:19:30 -04:00
2018-10-02 05:44:50 -04:00
2018-10-02 05:44:50 -04:00
2019-02-13 00:03:49 +01:00
2019-05-06 18:48:04 +00:00
2018-10-28 17:57:43 +00:00