Berthold Stoeger
285ea9b7ca
Cleanup: don't initialize DivePlannerPointsModel at startup
...
The whole point of having X::instance() functions is to solve
the infamous "Static Initialization Order Fiasco": When having
global objects in different translation units, their order
of initialization is undefined. Thus, when these objects access
each other one cannot guarantee the correct order of
initialization. The X::instance() functions generate the objects
on first use.
DivePlannerPointsModel has such an instance() function. However,
for convenience(?) in diveplanner.cpp we find the global variable
static DivePlannerPointsModel* plannerModel =
DivePlannerPointsModel::instance();
Thus, the DivePlannerPointsModel constructor is run before main(),
negating the whole purpose of the instance() function.
Let's remove this line to avoid hard-to-debug startup issues.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-02-06 08:51:32 -08:00
..
2015-10-30 10:36:49 -07:00
2020-01-20 09:55:26 -08:00
2018-09-29 15:23:25 -07:00
2020-02-04 02:16:46 +01:00
2019-01-02 09:45:01 -08:00
2017-04-29 13:32:55 -07:00
2017-11-30 23:14:46 -08:00
2020-01-10 02:37:03 +09:00
2018-09-30 08:09:37 -07:00
2019-02-14 09:05:58 -08:00
2020-01-24 09:51:02 -08:00
2018-08-28 12:03:03 -07:00
2018-09-29 15:23:25 -07:00
2018-04-27 21:33:47 +03:00
2019-02-07 16:06:43 +01:00
2018-06-17 06:53:13 +09:00
2018-06-17 06:53:13 +09:00
2017-11-30 23:14:46 -08:00
2020-02-04 02:18:28 +01:00
2020-02-04 02:16:46 +01:00
2019-12-24 08:44:23 +09:00
2019-12-03 21:30:39 -08:00
2019-04-13 08:18:32 -07:00
2020-01-10 02:37:03 +09:00
2018-10-04 10:22:11 +02:00
2017-11-30 23:14:46 -08:00
2018-07-18 09:06:37 -07:00
2018-09-29 15:23:25 -07:00
2020-02-06 08:51:32 -08:00
2020-01-10 02:37:03 +09:00
2018-03-02 08:38:22 -08:00
2019-12-11 11:08:51 -05:00
2019-12-11 11:08:51 -05:00
2015-10-30 10:36:49 -07:00
2020-01-10 02:37:03 +09:00
2019-05-06 10:48:44 +02:00
2019-05-06 10:48:44 +02:00
2019-11-14 21:02:07 +01:00
2019-10-02 08:04:49 -07:00
2018-09-23 11:49:30 -07:00
2019-11-19 21:13:40 -08:00
2019-11-19 21:13:40 -08:00
2019-07-29 07:24:05 +02:00
2019-03-18 19:40:32 -07:00
2018-07-04 02:27:36 +08:00
2018-07-15 09:38:12 -07:00
2018-01-10 16:45:42 +01:00
2018-09-29 15:23:25 -07:00
2020-01-24 09:51:02 -08:00
2020-01-24 09:51:02 -08:00
2020-01-24 09:51:02 -08:00
2017-04-29 13:32:55 -07:00
2018-09-29 15:23:25 -07:00
2018-12-14 01:05:18 +08:00
2020-02-06 08:50:22 -08:00
2020-02-06 08:50:22 -08:00
2020-01-24 09:51:02 -08:00
2020-02-04 02:16:46 +01:00
2019-11-19 21:13:40 -08:00
2019-06-03 19:55:19 +02:00
2019-11-14 21:02:07 +01:00
2020-02-04 02:16:46 +01:00
2020-01-10 02:37:03 +09:00
2019-12-05 10:14:25 -08:00
2018-01-31 14:47:26 +01:00
2018-01-31 14:47:26 +01:00
2017-02-24 01:06:09 -08:00
2019-10-31 00:30:38 -07:00
2019-09-11 17:21:50 +01:00
2019-09-11 17:21:50 +01:00
2019-09-11 17:21:50 +01:00
2019-09-11 17:21:50 +01:00
2019-04-12 12:59:17 +03:00
2019-04-02 07:34:46 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2018-07-15 09:38:12 -07:00
2017-11-30 23:14:46 -08:00
2020-01-10 02:37:03 +09:00
2019-06-10 17:59:35 +03:00
2020-01-10 02:37:03 +09:00
2018-09-29 15:23:25 -07:00
2020-01-10 02:37:03 +09:00
2019-12-11 12:36:43 -05:00
2020-01-10 02:37:03 +09:00
2019-12-05 10:14:25 -08:00
2015-10-30 10:36:49 -07:00
2019-04-14 03:38:22 +12:00
2019-04-12 18:19:07 +03:00
2018-11-19 13:51:03 -08:00
2017-04-29 13:32:55 -07:00
2017-03-12 09:19:03 -07:00
2019-12-04 13:00:23 +01:00
2020-02-04 02:16:46 +01:00
2019-04-12 18:19:07 +03:00
2019-04-12 18:19:07 +03:00
2019-02-09 10:37:55 -08:00
2017-04-29 13:32:55 -07:00
2018-07-15 09:38:12 -07:00
2019-04-12 18:19:07 +03:00
2019-03-20 08:45:02 -07:00
2018-08-29 03:09:10 -07:00
2017-04-29 13:32:55 -07:00
2017-03-06 06:40:00 -08:00
2017-11-30 23:14:46 -08:00