Sat, 24 Aug 2019 14:44:42 +0300
things
#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} {}