]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/placeable.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / render / placeable.h
index 35999a06e1df5f30820511167d0c107d8941a955..9d0c2dd7703fd38b86df2cea5ca93f11a319ed9a 100644 (file)
@@ -15,9 +15,9 @@ class Placeable
 protected:
        Matrix matrix;
 
-       Placeable() { }
+       Placeable() = default;
 public:
-       virtual ~Placeable() { }
+       virtual ~Placeable() = default;
 
        virtual void set_matrix(const Matrix &);
 
@@ -27,10 +27,14 @@ public:
 };
 
 
+/**
+An intermediate base class combining the functionality of Renderable and
+Placeable.
+*/
 class PlacedRenderable: public Renderable, public Placeable
 {
 protected:
-       PlacedRenderable() { }
+       PlacedRenderable() = default;
 
 public:
        /* Reimplement to clear ambiguity between Renderable and Placeable.  This