src/modelobject.cpp

changeset 3
55a55a9ec2c2
parent 2
2bdc3ac5e77c
child 4
68988ebc2a68
equal deleted inserted replaced
2:2bdc3ac5e77c 3:55a55a9ec2c2
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