diff --git a/src/gameglview.h b/src/gameglview.h index 77dfc252faac5c6463ad9d680a1cc0a6b5d3528c..8c27a512c990a9ba2bc52afc2269a08389c358f4 100644 --- a/src/gameglview.h +++ b/src/gameglview.h @@ -72,12 +72,12 @@ protected: * * This method is called automatically by Qt once. */ - void initializeGL() Q_DECL_OVERRIDE; + void initializeGL() override; /** * Called by Qt when the size of the GL view changes. **/ - void resizeGL(int w, int h) Q_DECL_OVERRIDE; + void resizeGL(int w, int h) override; /** * This method actually renders the scene. It is called automatically by Qt @@ -86,15 +86,15 @@ protected: * * Do not call this method directly! **/ - void paintGL() Q_DECL_OVERRIDE; + void paintGL() override; /** * Handle mouse events. In these implementations, game->handleMouseEvent * is called with event type, button, X co-ordinate and Y co-ordinate in * OpenGL convention (zero at bottom of window). **/ - void mousePressEvent (QMouseEvent* e) Q_DECL_OVERRIDE; - void mouseReleaseEvent (QMouseEvent* e) Q_DECL_OVERRIDE; + void mousePressEvent (QMouseEvent* e) override; + void mouseReleaseEvent (QMouseEvent* e) override; /** * Check for an OpenGL error. Dump any error to stdout diff --git a/src/kubrick.h b/src/kubrick.h index 9544833ec251dd75bd8fbfb11e83a3440d0e1b5a..7ec4787f9a2629e4cfcc99d48db627897f3267d8 100644 --- a/src/kubrick.h +++ b/src/kubrick.h @@ -81,7 +81,7 @@ protected: * been saved. This is as with a real Rubik Cube, which stays how it is * when you stop playing with it. */ - bool queryClose() Q_DECL_OVERRIDE; + bool queryClose() override; protected slots: void optionsConfigureKeys(); @@ -96,7 +96,7 @@ protected slots: void patternSelected (); void movesSelected (); - void saveNewToolbarConfig() Q_DECL_OVERRIDE; + void saveNewToolbarConfig() override; private: Game * game; // The game object.