diff -r 7cbdaefda950 -r ec691d9472b3 src/linetypes/triangle.h --- a/src/linetypes/triangle.h Sat Mar 03 17:59:56 2018 +0200 +++ b/src/linetypes/triangle.h Mon Mar 05 22:40:34 2018 +0200 @@ -27,18 +27,16 @@ public: static constexpr LDObjectType SubclassType = LDObjectType::Triangle; + LDTriangle() = default; + LDTriangle(Vertex const& v1, Vertex const& v2, Vertex const& v3); + virtual LDObjectType type() const override { - return SubclassType; + return LDObjectType::Triangle; } virtual QString asText() const override; int triangleCount(DocumentManager*) const override; int numVertices() const override { return 3; } QString typeName() const override { return "triangle"; } - -protected: - friend class Model; - LDTriangle (Model* model); - LDTriangle (Vertex const& v1, Vertex const& v2, Vertex const& v3, Model* model = nullptr); };