]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.h
Use the override specifier when overriding a virtual function
[libs/gltk.git] / source / dropdown.h
index 70a9faaf646c4b6381bd023eda3262d0a48c41cd..c5b535d599bcaae434bb29f0fd53f06f0334890f 100644 (file)
@@ -37,10 +37,10 @@ private:
        void init();
 
 public:
-       virtual const char *get_class() const { return "dropdown"; }
+       const char *get_class() const override { return "dropdown"; }
 
 private:
-       virtual void autosize_special(const Part &, Geometry &) const;
+       void autosize_special(const Part &, Geometry &) const override;
 
 public:
        void set_data(ListData &d) { list.set_data(d); }
@@ -54,15 +54,15 @@ public:
        int get_selected_index() const { return list.get_selected_index(); }
 
 private:
-       virtual void rebuild_special(const Part &);
-       virtual void render_special(const Part &, GL::Renderer &) const;
+       void rebuild_special(const Part &) override;
+       void render_special(const Part &, GL::Renderer &) const override;
 
 public:
-       virtual void button_press(int, int, unsigned);
-       virtual bool navigate(Navigation);
+       void button_press(int, int, unsigned) override;
+       bool navigate(Navigation) override;
 private:
-       virtual void on_size_change();
-       virtual void on_style_change();
+       void on_size_change() override;
+       void on_style_change() override;
 
        void open_list();
        void close_list();