Fastigium
3c7bfbac64
Replace every use of the foreach macro with a C++11 range-based for loop
...
This prevents a race condition with Qt5. A foreach loop makes a copy of its
Qt container, increasing the reference count to the container's internal
data. Qt5 often asserts isDetached(), which requires the reference count to
be <= 1. This assertion fails when the foreach loop increases the reference
count at exactly the wrong moment. Using a range-based for loop prevents an
unnecessary copy from being made and ensures this race condition isn't
triggered.
2016-03-13 16:09:50 +01:00
..
2014-12-24 19:59:12 +02:00
2015-04-09 02:13:31 +01:00
2015-03-16 06:57:12 +00:00
2014-12-08 23:48:44 +00:00
2014-12-13 16:28:44 +02:00
2016-02-17 21:53:23 +01:00
2016-02-17 21:53:23 +01:00
2016-02-17 21:53:23 +01:00
2014-12-24 20:07:04 +02:00
2015-06-10 09:07:55 -04:00
2015-06-10 09:07:55 -04:00
2014-12-24 19:59:12 +02:00
2016-02-21 00:10:44 -06:00
2016-03-03 18:43:16 +13:00
2016-02-25 20:23:32 -08:00
2016-03-13 16:09:50 +01:00
2014-11-26 10:53:47 +01:00
2014-12-08 23:48:44 +00:00
2015-01-09 20:17:07 +01:00
2015-10-30 22:53:28 +01:00
2016-03-13 16:09:50 +01:00
2016-03-13 16:09:50 +01:00
2015-06-17 15:48:27 -04:00
2015-06-10 09:07:55 -04:00
2014-12-08 23:48:44 +00:00
2015-06-10 09:07:55 -04:00
2016-03-13 16:09:50 +01:00
2015-11-24 01:53:50 +00:00
2014-12-16 23:12:02 +02:00
2014-11-26 10:39:02 +01:00
2014-12-08 23:48:44 +00:00
2016-03-13 16:09:50 +01:00
2015-04-26 16:59:01 +03:00
2014-12-08 23:48:44 +00:00
2015-01-07 00:03:32 +01:00
2014-12-08 23:48:44 +00:00
2014-12-08 23:48:44 +00:00
2016-02-23 01:08:52 -05:00
2016-02-01 22:48:05 +01:00
2016-03-13 16:09:50 +01:00
2014-12-08 23:48:44 +00:00
2016-03-05 00:05:22 +08:00
2016-03-13 16:09:50 +01:00
2015-06-10 09:07:55 -04:00
2015-03-01 22:54:06 +00:00
2016-03-13 16:09:50 +01:00
2016-02-07 21:43:47 +01:00