--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/modelobject.cpp Sat Aug 24 14:44:42 2019 +0300 @@ -0,0 +1,22 @@ +#include "modelobject.h" + +static Uuid &getUuidForNewObject() +{ + static Uuid running_uuid {0, 0}; + incrementUuid(running_uuid); + return running_uuid; +} + +ModelObject::ModelObject() : + id {getUuidForNewObject()} +{ +} + +ModelObject::~ModelObject() +{ +} + + +Comment::Comment(QStringView text) : + ModelObject{}, + storedText{text} {}