adopt explicit initialization - with the exception of trivial classes (#122)

This commit is contained in:
rjwats
2020-05-21 23:41:29 +01:00
committed by GitHub
parent db0d98d425
commit 4fa491e309
8 changed files with 31 additions and 16 deletions

View File

@ -20,7 +20,8 @@ class FSPersistence {
_jsonDeserializer(jsonDeserializer),
_statefulService(statefulService),
_fs(fs),
_filePath(filePath) {
_filePath(filePath),
_updateHandlerId(0) {
enableUpdateHandler();
}
@ -85,7 +86,7 @@ class FSPersistence {
StatefulService<T>* _statefulService;
FS* _fs;
char const* _filePath;
update_handler_id_t _updateHandlerId = 0;
update_handler_id_t _updateHandlerId;
protected:
// We assume the deserializer supplies sensible defaults if an empty object