Julian Brost
77427bedae
AddDowntime: return Downtime::Ptr instead of String containing the name
...
At numerous places in the code, something like this is performed:
String name = Downtime::AddDowntime(...);
Downtime::Ptr downtime = Downtime::GetByName(name);
However, `downtime` can be a `nullptr` after this as it is possible that
the downtime is deleted in between.
This commit changes the return type of `Downtime::AddDowntime` to return
a Downtime::Ptr instead of the full name of the downtime. `AddDowntime`
performs the very same `GetByName()` operation internally, but handles
the `nullptr` case correctly and throws an exception.
2021-05-26 08:54:01 +02:00
..
2021-05-26 08:54:01 +02:00
2019-02-25 14:48:22 +01:00
2019-07-16 13:46:16 +02:00
2019-02-25 14:48:22 +01:00
2020-12-11 16:40:29 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2020-12-11 16:40:29 +01:00
2019-02-25 14:48:22 +01:00
2019-09-23 09:41:08 +02:00
2020-02-19 10:59:00 +01:00
2019-07-09 16:38:50 +02:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2020-06-03 16:21:01 +02:00
2019-08-29 17:04:23 +02:00
2019-04-16 15:04:57 +02:00
2020-02-19 10:59:00 +01:00
2020-02-19 10:59:00 +01:00
2020-02-19 11:00:56 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2021-05-26 08:54:01 +02:00
2021-05-26 08:54:01 +02:00
2019-02-26 15:38:15 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2021-05-26 08:54:01 +02:00
2019-02-25 14:48:22 +01:00
2019-04-09 11:26:34 +02:00
2019-04-09 11:26:34 +02:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2020-06-03 16:25:53 +02:00
2019-04-16 15:04:57 +02:00
2019-02-26 15:38:15 +01:00
2019-07-09 16:21:07 +02:00
2019-07-09 16:16:43 +02:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2020-02-19 11:00:47 +01:00
2020-02-19 11:00:47 +01:00
2020-02-19 10:59:07 +01:00
2020-02-19 10:59:07 +01:00
2020-02-19 10:59:07 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2021-05-26 08:54:01 +02:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-07-04 16:14:40 +02:00
2019-04-11 11:25:45 +02:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-05-01 11:49:07 +02:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00
2019-02-25 14:48:22 +01:00