]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/slot.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / render / slot.h
index 9129869ed8fcc46ff9992995d34d78cd8907243c..a675c64fb879a8f160e601dd5ccf1542aec0d313 100644 (file)
@@ -13,13 +13,11 @@ needs to be switched without affecting the rest.
 class Slot: public Renderable
 {
 private:
-       Renderable *renderable;
+       Renderable *content = 0;
 
 public:
-       Slot();
-
        void set(Renderable *);
-       Renderable *get() const { return renderable; }
+       Renderable *get() const { return content; }
 
        virtual const Matrix *get_matrix() const;
        virtual const Geometry::BoundingSphere<float, 3> *get_bounding_sphere() const;