src/modelobject.cpp

changeset 2
2bdc3ac5e77c
equal deleted inserted replaced
1:51d14b0c68c0 2:2bdc3ac5e77c
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} {}

mercurial