X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fimage.h;h=99e0874f124e36b72ca3a08660896a9b40cc6f5c;hb=aa9b8db38efb9e97460c76e27cecc4d1591b23e5;hp=77357561ead0a54fc147681e580bd67fa80c989c;hpb=56c41b294aa47a38ac3e1be70d4868f260cb4274;p=libs%2Fgltk.git diff --git a/source/image.h b/source/image.h index 7735756..99e0874 100644 --- a/source/image.h +++ b/source/image.h @@ -21,17 +21,17 @@ public: }; private: - const GL::Texture2D *image; + const GL::Texture2D *image = nullptr; std::string icon_name; - bool keep_aspect; + bool keep_aspect = true; public: - Image(const GL::Texture2D * = 0); + Image(const GL::Texture2D * = nullptr); - virtual const char *get_class() const { return "image"; } + const char *get_class() const override { return "image"; } private: - virtual void autosize_special(const Part &, Geometry &) const; + void autosize_special(const Part &, Geometry &) const override; public: void set_image(const GL::Texture2D *); @@ -40,9 +40,9 @@ public: private: void update_icon(); - virtual void rebuild_special(const Part &); - virtual void on_style_change(); - virtual void on_reparent(); + void rebuild_special(const Part &) override; + void on_style_change() override; + void on_reparent() override; }; } // namespace GLtk