]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/graphic.h
Use nullptr instead of 0 for pointers
[libs/gltk.git] / source / graphic.h
index 4fed368938016e8613e4a6132155d932889d48a0..32a06864f9dcebf260c9f52e154b141e95660ba1 100644 (file)
@@ -33,12 +33,11 @@ public:
 private:
        Sides border;
        Sides shadow;
-       const GL::Texture2D *texture;
+       const GL::Texture2D *texture = nullptr;
        Geometry slice;
-       bool repeat;
+       bool repeat = false;
 
 public:
-       Graphic();
        const Sides &get_border() const { return border; }
        const Sides &get_shadow() const { return shadow; }
        const GL::Texture2D *get_texture() const { return texture; }