src/modelobject.cpp

Sat, 24 Aug 2019 14:44:42 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 24 Aug 2019 14:44:42 +0300
changeset 2
2bdc3ac5e77c
permissions
-rw-r--r--

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} {}

mercurial