diff -r aeb5f203b3eb -r a5111f4e6412 src/linetypes/object.h --- a/src/linetypes/object.h Fri Nov 08 19:05:07 2019 +0200 +++ b/src/linetypes/object.h Fri Dec 13 15:55:56 2019 +0200 @@ -8,6 +8,7 @@ namespace linetypes { + struct Id { unsigned int value; }; enum class Property; class Object; class ColoredObject; @@ -46,7 +47,7 @@ Object(); Object(const Object&) = delete; virtual ~Object(); - const unsigned int id; + const Id id; //virtual void toString(QTextStream &out) = 0; virtual bool hasColor() const; virtual QVariant getProperty(Property id) const; @@ -75,8 +76,3 @@ { QString textRepresentation() const override; }; - -namespace linetypes -{ - using Id = std::decay_t; -}