Sat, 24 Aug 2019 14:44:42 +0300
things
2 | 1 | #include "modelobject.h" |
2 | ||
3 | static Uuid &getUuidForNewObject() | |
4 | { | |
5 | static Uuid running_uuid {0, 0}; | |
6 | incrementUuid(running_uuid); | |
7 | return running_uuid; | |
8 | } | |
9 | ||
10 | ModelObject::ModelObject() : | |
11 | id {getUuidForNewObject()} | |
12 | { | |
13 | } | |
14 | ||
15 | ModelObject::~ModelObject() | |
16 | { | |
17 | } | |
18 | ||
19 | ||
20 | Comment::Comment(QStringView text) : | |
21 | ModelObject{}, | |
22 | storedText{text} {} |