Skip to content

Commit 779b5da

Browse files
committed
Refactor member variable initialisation list for better consistency
1 parent cae230c commit 779b5da

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/property/Property.cpp

+19-19
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@
2929
CTOR/DTOR
3030
******************************************************************************/
3131
Property::Property()
32-
: _name(""),
33-
_min_delta_property(0.0f),
34-
_min_time_between_updates_millis(0),
35-
_permission(Permission::Read),
36-
_get_time_func{nullptr},
37-
_update_callback_func(nullptr),
38-
_sync_callback_func(nullptr),
39-
_has_been_updated_once(false),
40-
_has_been_modified_in_callback(false),
41-
_last_updated_millis(0),
42-
_update_interval_millis(0),
43-
_last_local_change_timestamp(0),
44-
_last_cloud_change_timestamp(0),
45-
_identifier(0),
46-
_attributeIdentifier(0),
47-
_lightPayload(false),
48-
_update_requested(false),
49-
_encode_timestamp(false),
50-
_timestamp(0)
32+
: _name{""}
33+
, _min_delta_property{0.0f}
34+
, _min_time_between_updates_millis{0}
35+
, _permission{Permission::Read}
36+
, _get_time_func{nullptr}
37+
, _update_callback_func{nullptr}
38+
, _sync_callback_func{nullptr}
39+
, _has_been_updated_once{false}
40+
, _has_been_modified_in_callback{false}
41+
, _last_updated_millis{0}
42+
, _update_interval_millis{0}
43+
, _last_local_change_timestamp{0}
44+
, _last_cloud_change_timestamp{0}
45+
, _identifier{0}
46+
, _attributeIdentifier{0}
47+
, _lightPayload{false}
48+
, _update_requested{false}
49+
, _encode_timestamp{false}
50+
, _timestamp{0}
5151
{
5252

5353
}

0 commit comments

Comments
 (0)