]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dialog.h
Use the override specifier when overriding a virtual function
[libs/gltk.git] / source / dialog.h
index e71222739cc415acf1876f3e1f3e60a560f11752..285478ebb570ddead2d12deae299805dd595ecee 100644 (file)
@@ -30,7 +30,7 @@ private:
        bool stale = false;
 
 public:
-       virtual const char *get_class() const { return "dialog"; }
+       const char *get_class() const override { return "dialog"; }
 
        /** Adds an action button to the dialog.  Pressing the button will invoke
        response handlers and delete the dialog. */
@@ -40,9 +40,9 @@ public:
        away from the dialog. */
        void set_modal(bool);
 
-       virtual void button_release(int, int, unsigned);
-       virtual bool key_release(unsigned, unsigned);
-       virtual bool navigate(Navigation);
+       void button_release(int, int, unsigned) override;
+       bool key_release(unsigned, unsigned) override;
+       bool navigate(Navigation) override;
 protected:
        void response(int);
        void check_stale();