]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/light.h
Use default member initializers for simple types
[libs/gl.git] / source / materials / light.h
index c0f929cf24377cd4771793ba0fcee889b4736012..b20ebae44d3fe714f0a7bc4365f160bf3ae9b7e9 100644 (file)
@@ -48,12 +48,12 @@ public:
        };
 
 protected:
-       Color color;
-       unsigned generation;
+       Color color = { 1.0f };
+       unsigned generation = 0;
 
-       Light();
+       Light() = default;
 public:
-       virtual ~Light() { }
+       virtual ~Light() = default;
 
        /** Sets the color of the Light. */
        void set_color(const Color &);