diff --git a/src/graphics/hit_sfx.hpp b/src/graphics/hit_sfx.hpp index 0fe6431d4..b30343ea9 100644 --- a/src/graphics/hit_sfx.hpp +++ b/src/graphics/hit_sfx.hpp @@ -36,7 +36,7 @@ private: public: HitSFX(const Vec3& coord, const char* explosion_sound); ~HitSFX(); - virtual bool updateAndDelete(float dt); + virtual bool updateAndDelete(float dt) OVERRIDE; virtual void setLocalPlayerKartHit() OVERRIDE; }; // HitSFX diff --git a/src/graphics/stk_text_billboard.hpp b/src/graphics/stk_text_billboard.hpp index 6bcce436f..986e0d9e2 100644 --- a/src/graphics/stk_text_billboard.hpp +++ b/src/graphics/stk_text_billboard.hpp @@ -84,7 +84,7 @@ public: virtual void collectChar(irr::video::ITexture* texture, const irr::core::rect& destRect, const irr::core::rect& sourceRect, - const irr::video::SColor* const colors); + const irr::video::SColor* const colors) OVERRIDE; virtual void updateAbsolutePosition() OVERRIDE; }; diff --git a/src/input/gamepad_config.hpp b/src/input/gamepad_config.hpp index 42a8fb478..b62c77d57 100644 --- a/src/input/gamepad_config.hpp +++ b/src/input/gamepad_config.hpp @@ -70,7 +70,7 @@ public: core::stringw toString(); - virtual void save(std::ofstream& stream); + virtual void save(std::ofstream& stream) OVERRIDE; void setDefaultBinds (); virtual core::stringw getBindingAsString(const PlayerAction action) const OVERRIDE; virtual bool load(const XMLNode *config) OVERRIDE; @@ -81,7 +81,7 @@ public: // ------------------------------------------------------------------------ /** Returns true if this device should desensitize its input at values * close to 0 (to avoid 'oversteering'). */ - virtual bool desensitize() const { return m_desensitize;} + virtual bool desensitize() const OVERRIDE { return m_desensitize;} // ------------------------------------------------------------------------ /** Returns the number of buttons in this configuration. */ @@ -103,9 +103,9 @@ public: /** Return deadzone of this configuration. */ int getDeadzone() const { return m_deadzone; } // ------------------------------------------------------------------------ - virtual bool isGamePad() const { return true; } + virtual bool isGamePad() const OVERRIDE { return true; } // ------------------------------------------------------------------------ - virtual bool isKeyboard() const { return false; } + virtual bool isKeyboard() const OVERRIDE { return false; } }; // class GamepadConfig diff --git a/src/karts/controller/local_player_controller.hpp b/src/karts/controller/local_player_controller.hpp index 39b9dcc4a..932b11f8d 100644 --- a/src/karts/controller/local_player_controller.hpp +++ b/src/karts/controller/local_player_controller.hpp @@ -75,7 +75,7 @@ public: virtual bool isLocalPlayerController() const OVERRIDE {return true;} // ------------------------------------------------------------------------ /** Returns the name of the player profile. */ - core::stringw getName() const { return m_player->getProfile()->getName(); } + core::stringw getName() const OVERRIDE { return m_player->getProfile()->getName(); } }; // LocalPlayerController diff --git a/src/karts/controller/player_controller.hpp b/src/karts/controller/player_controller.hpp index 7db23f2b0..08640c9bb 100644 --- a/src/karts/controller/player_controller.hpp +++ b/src/karts/controller/player_controller.hpp @@ -64,22 +64,22 @@ public: { } // setPosition // ------------------------------------------------------------------------ - virtual void crashed(const AbstractKart *k) + virtual void crashed(const AbstractKart *k) OVERRIDE { } // crashed(AbstractKart) // ------------------------------------------------------------------------ - virtual void crashed(const Material *m) + virtual void crashed(const Material *m) OVERRIDE { } // crashed(Material) // ------------------------------------------------------------------------ /** Callback whenever a new lap is triggered. Used by the AI * to trigger a recomputation of the way to use, not used for players. */ - virtual void newLap(int lap) + virtual void newLap(int lap) OVERRIDE { } // ------------------------------------------------------------------------ /** Player will always be able to get a slipstream bonus. */ - virtual bool disableSlipstreamBonus() const + virtual bool disableSlipstreamBonus() const OVERRIDE { return false; } diff --git a/src/modes/easter_egg_hunt.hpp b/src/modes/easter_egg_hunt.hpp index 00eb70db5..83dde6dbc 100644 --- a/src/modes/easter_egg_hunt.hpp +++ b/src/modes/easter_egg_hunt.hpp @@ -46,20 +46,20 @@ public: EasterEggHunt(); virtual ~EasterEggHunt(); - virtual void init(); + virtual void init() OVERRIDE; - virtual bool isRaceOver(); + virtual bool isRaceOver() OVERRIDE; // overriding World methods - virtual void reset(); + virtual void reset() OVERRIDE; - virtual bool raceHasLaps(){ return false; } + virtual bool raceHasLaps() OVERRIDE { return false; } - virtual const std::string& getIdent() const; - virtual void terminateRace(); - virtual void update(float dt); + virtual const std::string& getIdent() const OVERRIDE; + virtual void terminateRace() OVERRIDE; + virtual void update(float dt) OVERRIDE; virtual void getKartsDisplayInfo( - std::vector *info); + std::vector *info) OVERRIDE; void updateKartRanks(); void collectedEasterEgg(const AbstractKart *kart); diff --git a/src/modes/follow_the_leader.hpp b/src/modes/follow_the_leader.hpp index da5fe1f6d..37e395b8f 100644 --- a/src/modes/follow_the_leader.hpp +++ b/src/modes/follow_the_leader.hpp @@ -48,7 +48,7 @@ public: // overriding World methods virtual void reset() OVERRIDE; virtual const std::string& getIdent() const OVERRIDE; - virtual const btTransform &getStartTransform(int index); + virtual const btTransform &getStartTransform(int index) OVERRIDE; virtual float getClockStartTime() const; virtual void getKartsDisplayInfo( std::vector *info) OVERRIDE; diff --git a/src/modes/linear_world.hpp b/src/modes/linear_world.hpp index 76959f402..b2d416cd5 100644 --- a/src/modes/linear_world.hpp +++ b/src/modes/linear_world.hpp @@ -160,7 +160,7 @@ public: // ------------------------------------------------------------------------ /** Returns the number of laps a kart has completed. * \param kart_index World index of the kart. */ - int getKartLaps(unsigned int kart_index) const + int getKartLaps(unsigned int kart_index) const OVERRIDE { assert(kart_index < m_kart_info.size()); return m_kart_info[kart_index].m_race_lap; diff --git a/src/modes/overworld.hpp b/src/modes/overworld.hpp index 62d510994..a0bb6a0b3 100644 --- a/src/modes/overworld.hpp +++ b/src/modes/overworld.hpp @@ -37,7 +37,7 @@ class OverWorld : public WorldWithRank protected: /** Override from base class */ - virtual void createRaceGUI(); + virtual void createRaceGUI() OVERRIDE; bool m_return_to_garage; diff --git a/src/modes/soccer_world.hpp b/src/modes/soccer_world.hpp index d43a830d7..0e87a3bc8 100644 --- a/src/modes/soccer_world.hpp +++ b/src/modes/soccer_world.hpp @@ -50,7 +50,7 @@ protected: virtual AbstractKart *createKart(const std::string &kart_ident, int index, int local_player_id, int global_player_id, RaceManager::KartType type, - PerPlayerDifficulty difficulty); + PerPlayerDifficulty difficulty) OVERRIDE; private: /** Keep a pointer to the track object of soccer ball */ @@ -113,27 +113,27 @@ public: SoccerWorld(); virtual ~SoccerWorld(); - virtual void init(); + virtual void init() OVERRIDE; // clock events - virtual bool isRaceOver(); - virtual void terminateRace(); + virtual bool isRaceOver() OVERRIDE; + virtual void terminateRace() OVERRIDE; virtual void countdownReachedZero() OVERRIDE; // overriding World methods - virtual void reset(); + virtual void reset() OVERRIDE; virtual unsigned int getRescuePositionIndex(AbstractKart *kart) OVERRIDE; - virtual bool useFastMusicNearEnd() const { return false; } + virtual bool useFastMusicNearEnd() const OVERRIDE { return false; } virtual void getKartsDisplayInfo( - std::vector *info) {} + std::vector *info) OVERRIDE {} - virtual bool raceHasLaps() { return false; } + virtual bool raceHasLaps() OVERRIDE { return false; } - virtual const std::string& getIdent() const; + virtual const std::string& getIdent() const OVERRIDE; - virtual void update(float dt); + virtual void update(float dt) OVERRIDE; // ------------------------------------------------------------------------ void onCheckGoalTriggered(bool first_goal); // ------------------------------------------------------------------------ diff --git a/src/modes/standard_race.hpp b/src/modes/standard_race.hpp index d94933183..88d58c410 100644 --- a/src/modes/standard_race.hpp +++ b/src/modes/standard_race.hpp @@ -29,7 +29,7 @@ class StandardRace : public LinearWorld { protected: // clock events - virtual bool isRaceOver(); + virtual bool isRaceOver() OVERRIDE; public: StandardRace(); diff --git a/src/modes/world.hpp b/src/modes/world.hpp index 0a76b39d3..3a03d0bf2 100644 --- a/src/modes/world.hpp +++ b/src/modes/world.hpp @@ -175,7 +175,7 @@ protected: Weather* m_weather; - virtual void onGo(); + virtual void onGo() OVERRIDE; /** Returns true if the race is over. Must be defined by all modes. */ virtual bool isRaceOver() = 0; virtual void update(float dt); diff --git a/src/modes/world_with_rank.hpp b/src/modes/world_with_rank.hpp index fd768bc46..7c159be89 100644 --- a/src/modes/world_with_rank.hpp +++ b/src/modes/world_with_rank.hpp @@ -65,7 +65,7 @@ public: /** call just after instanciating. can't be moved to the contructor as child classes must be instanciated, otherwise polymorphism will fail and the results will be incorrect */ - virtual void init(); + virtual void init() OVERRIDE; bool displayRank() const { return m_display_rank; } diff --git a/src/network/protocols/connect_to_peer.hpp b/src/network/protocols/connect_to_peer.hpp index 29099ac4e..054c6ea62 100644 --- a/src/network/protocols/connect_to_peer.hpp +++ b/src/network/protocols/connect_to_peer.hpp @@ -54,10 +54,10 @@ public: ConnectToPeer(const TransportAddress &address); virtual ~ConnectToPeer(); - virtual bool notifyEventAsynchronous(Event* event); - virtual void setup(); - virtual void update() {} - virtual void asynchronousUpdate(); + virtual bool notifyEventAsynchronous(Event* event) OVERRIDE; + virtual void setup() OVERRIDE; + virtual void update() OVERRIDE {} + virtual void asynchronousUpdate() OVERRIDE; virtual void callback(Protocol *protocol) OVERRIDE; }; // class ConnectToPeer diff --git a/src/network/protocols/connect_to_server.hpp b/src/network/protocols/connect_to_server.hpp index 6d6c9597f..0fb020ac0 100644 --- a/src/network/protocols/connect_to_server.hpp +++ b/src/network/protocols/connect_to_server.hpp @@ -61,8 +61,8 @@ public: virtual bool notifyEventAsynchronous(Event* event) OVERRIDE; virtual void setup() OVERRIDE; - virtual void asynchronousUpdate(); - virtual void callback(Protocol *protocol); + virtual void asynchronousUpdate() OVERRIDE; + virtual void callback(Protocol *protocol) OVERRIDE; virtual void update() OVERRIDE {} void setServerAddress(const TransportAddress &address); }; // class ConnectToServer diff --git a/src/network/protocols/server_lobby_room_protocol.hpp b/src/network/protocols/server_lobby_room_protocol.hpp index f07a0ce44..1abfa1814 100644 --- a/src/network/protocols/server_lobby_room_protocol.hpp +++ b/src/network/protocols/server_lobby_room_protocol.hpp @@ -45,10 +45,10 @@ public: ServerLobbyRoomProtocol(); virtual ~ServerLobbyRoomProtocol(); - virtual bool notifyEventAsynchronous(Event* event); - virtual void setup(); - virtual void update(); - virtual void asynchronousUpdate() {}; + virtual bool notifyEventAsynchronous(Event* event) OVERRIDE; + virtual void setup() OVERRIDE; + virtual void update() OVERRIDE; + virtual void asynchronousUpdate() OVERRIDE {}; void startGame(); void startSelection(const Event *event=NULL); diff --git a/src/network/servers_manager.cpp b/src/network/servers_manager.cpp index 771479f57..43302e2da 100644 --- a/src/network/servers_manager.cpp +++ b/src/network/servers_manager.cpp @@ -148,7 +148,7 @@ Online::XMLRequest* ServersManager::getLANRefreshRequest() const { } // prepareOperation // -------------------------------------------------------------------- - virtual void operation() + virtual void operation() OVERRIDE { Network *broadcast = new Network(1, 1, 0, 0); diff --git a/src/states_screens/addons_screen.hpp b/src/states_screens/addons_screen.hpp index 63c0f3371..8b4c1be5b 100644 --- a/src/states_screens/addons_screen.hpp +++ b/src/states_screens/addons_screen.hpp @@ -101,7 +101,7 @@ public: /** \brief implement callback from parent class GUIEngine::Screen */ virtual void beforeAddingWidget() OVERRIDE; - virtual void onColumnClicked(int columnId); + virtual void onColumnClicked(int columnId) OVERRIDE; virtual void init() OVERRIDE; virtual void tearDown() OVERRIDE; diff --git a/src/states_screens/credits.hpp b/src/states_screens/credits.hpp index 7c594bf6c..b454832cd 100644 --- a/src/states_screens/credits.hpp +++ b/src/states_screens/credits.hpp @@ -84,7 +84,7 @@ public: void setVictoryMusic(bool isVictory) { m_is_victory_music = isVictory; } - virtual MusicInformation* getMusic() const + virtual MusicInformation* getMusic() const OVERRIDE { if (m_is_victory_music) return music_manager->getMusicInformation("win_theme.music"); diff --git a/src/states_screens/cutscene_gui.hpp b/src/states_screens/cutscene_gui.hpp index 45ac0073c..9925a38f7 100644 --- a/src/states_screens/cutscene_gui.hpp +++ b/src/states_screens/cutscene_gui.hpp @@ -52,8 +52,8 @@ public: void setFadeLevel(float level) { m_fade_level = level; } void setSubtitle(const core::stringw& subtitle) { m_subtitle = subtitle; } - virtual void renderGlobal(float dt); - virtual void renderPlayerView(const Camera *camera, float dt){} + virtual void renderGlobal(float dt) OVERRIDE; + virtual void renderPlayerView(const Camera *camera, float dt) OVERRIDE {} virtual const core::dimension2du getMiniMapSize() const OVERRIDE { diff --git a/src/states_screens/dialogs/addons_loading.hpp b/src/states_screens/dialogs/addons_loading.hpp index 25e3fbdd3..cdc91c6e8 100644 --- a/src/states_screens/dialogs/addons_loading.hpp +++ b/src/states_screens/dialogs/addons_loading.hpp @@ -59,15 +59,15 @@ public: ~AddonsLoading(); - virtual GUIEngine::EventPropagation processEvent(const std::string& event_source); - virtual void beforeAddingWidgets(); - virtual void init(); + virtual GUIEngine::EventPropagation processEvent(const std::string& event_source) OVERRIDE; + virtual void beforeAddingWidgets() OVERRIDE; + virtual void init() OVERRIDE; /** This function is called by the GUI, all the frame (or somthing like * that). It checks the flags (m_can_load_icon and * and do the necessary. * */ - void onUpdate(float delta); + void onUpdate(float delta) OVERRIDE; void voteClicked(); virtual bool onEscapePressed() OVERRIDE; diff --git a/src/states_screens/dialogs/confirm_resolution_dialog.hpp b/src/states_screens/dialogs/confirm_resolution_dialog.hpp index 9d8b97b48..a1fab1ddb 100644 --- a/src/states_screens/dialogs/confirm_resolution_dialog.hpp +++ b/src/states_screens/dialogs/confirm_resolution_dialog.hpp @@ -38,10 +38,10 @@ private: public: ConfirmResolutionDialog(); - void onEnterPressedInternal(); - GUIEngine::EventPropagation processEvent(const std::string& eventSource); + void onEnterPressedInternal() OVERRIDE; + GUIEngine::EventPropagation processEvent(const std::string& eventSource) OVERRIDE; - virtual void onUpdate(float dt); + virtual void onUpdate(float dt) OVERRIDE; virtual bool onEscapePressed() OVERRIDE; }; diff --git a/src/states_screens/dialogs/debug_slider.hpp b/src/states_screens/dialogs/debug_slider.hpp index 2a8be11cf..8e0768db6 100644 --- a/src/states_screens/dialogs/debug_slider.hpp +++ b/src/states_screens/dialogs/debug_slider.hpp @@ -49,7 +49,7 @@ public: virtual void onEnterPressedInternal() OVERRIDE; virtual void onUpdate(float dt) OVERRIDE; - GUIEngine::EventPropagation processEvent(const std::string& eventSource); + GUIEngine::EventPropagation processEvent(const std::string& eventSource) OVERRIDE; }; diff --git a/src/states_screens/dialogs/message_dialog.hpp b/src/states_screens/dialogs/message_dialog.hpp index 7f4627124..923a761dd 100644 --- a/src/states_screens/dialogs/message_dialog.hpp +++ b/src/states_screens/dialogs/message_dialog.hpp @@ -20,6 +20,7 @@ #define HEADER_CONFIRM_DIALOG_HPP #include "guiengine/modaldialog.hpp" +#include "utils/cpp2011.hpp" #include "utils/leak_check.hpp" /** @@ -93,13 +94,13 @@ public: ~MessageDialog(); - virtual void onEnterPressedInternal(); - virtual void onUpdate(float dt); - virtual void load(); + virtual void onEnterPressedInternal() OVERRIDE; + virtual void onUpdate(float dt) OVERRIDE; + virtual void load() OVERRIDE; - GUIEngine::EventPropagation processEvent(const std::string& eventSource); + GUIEngine::EventPropagation processEvent(const std::string& eventSource) OVERRIDE; - virtual void loadedFromFile(); + virtual void loadedFromFile() OVERRIDE; }; diff --git a/src/states_screens/dialogs/scripting_console.hpp b/src/states_screens/dialogs/scripting_console.hpp index f4200a715..c248a008c 100644 --- a/src/states_screens/dialogs/scripting_console.hpp +++ b/src/states_screens/dialogs/scripting_console.hpp @@ -45,7 +45,7 @@ public: virtual void onEnterPressedInternal() OVERRIDE{ runScript(); } void runScript(); - GUIEngine::EventPropagation processEvent(const std::string& eventSource); + GUIEngine::EventPropagation processEvent(const std::string& eventSource) OVERRIDE; }; #endif diff --git a/src/states_screens/dialogs/tutorial_message_dialog.hpp b/src/states_screens/dialogs/tutorial_message_dialog.hpp index 743300465..79c0f4427 100644 --- a/src/states_screens/dialogs/tutorial_message_dialog.hpp +++ b/src/states_screens/dialogs/tutorial_message_dialog.hpp @@ -44,7 +44,7 @@ public: virtual void onUpdate(float dt) OVERRIDE; - GUIEngine::EventPropagation processEvent(const std::string& eventSource); + GUIEngine::EventPropagation processEvent(const std::string& eventSource) OVERRIDE; }; diff --git a/src/states_screens/edit_gp_screen.hpp b/src/states_screens/edit_gp_screen.hpp index 5f3941437..69456585b 100644 --- a/src/states_screens/edit_gp_screen.hpp +++ b/src/states_screens/edit_gp_screen.hpp @@ -43,8 +43,8 @@ class EditGPScreen : EditGPScreen(); - void onConfirm(); - void onCancel(); + void onConfirm() OVERRIDE; + void onCancel() OVERRIDE; void loadList(const int selected); void setModified(const bool modified); diff --git a/src/states_screens/gp_info_screen.hpp b/src/states_screens/gp_info_screen.hpp index 25a08d9c8..da2cca82f 100644 --- a/src/states_screens/gp_info_screen.hpp +++ b/src/states_screens/gp_info_screen.hpp @@ -88,12 +88,12 @@ public: void onEnterPressedInternal(); virtual void eventCallback(GUIEngine::Widget *, const std::string &name, - const int player_id); + const int player_id) OVERRIDE; virtual void loadedFromFile() OVERRIDE; virtual void init() OVERRIDE; virtual void beforeAddingWidget() OVERRIDE; - virtual void onUpdate(float dt); + virtual void onUpdate(float dt) OVERRIDE; void setGP(const std::string &gp_ident); }; // GPInfoScreen diff --git a/src/states_screens/grand_prix_cutscene.hpp b/src/states_screens/grand_prix_cutscene.hpp index adf8b129a..cb94f8b4a 100644 --- a/src/states_screens/grand_prix_cutscene.hpp +++ b/src/states_screens/grand_prix_cutscene.hpp @@ -35,7 +35,7 @@ protected: void saveGPButton(); /** implement callback from INewGPListener */ - void onNewGPWithName(const irr::core::stringw& name); + void onNewGPWithName(const irr::core::stringw& name) OVERRIDE; // implement callbacks from parent class GUIEngine::Screen void eventCallback(GUIEngine::Widget* widget, diff --git a/src/states_screens/grand_prix_editor_screen.hpp b/src/states_screens/grand_prix_editor_screen.hpp index 9999092c6..15ab93754 100644 --- a/src/states_screens/grand_prix_editor_screen.hpp +++ b/src/states_screens/grand_prix_editor_screen.hpp @@ -48,8 +48,8 @@ class GrandPrixEditorScreen : void showEditScreen(GrandPrixData* gp); void enableButtons(); - void onNewGPWithName(const irr::core::stringw& newName); - void onConfirm(); + void onNewGPWithName(const irr::core::stringw& newName) OVERRIDE; + void onConfirm() OVERRIDE; static const core::stringw getGroupName(enum GrandPrixData::GPGroupType group); diff --git a/src/states_screens/network_kart_selection.hpp b/src/states_screens/network_kart_selection.hpp index ec2ea21c4..8c7777e56 100644 --- a/src/states_screens/network_kart_selection.hpp +++ b/src/states_screens/network_kart_selection.hpp @@ -32,7 +32,7 @@ protected: NetworkKartSelectionScreen(); virtual ~NetworkKartSelectionScreen(); - virtual void playerConfirm(const int playerID); + virtual void playerConfirm(const int playerID) OVERRIDE; public: virtual void init() OVERRIDE; virtual bool onEscapePressed() OVERRIDE; diff --git a/src/states_screens/online_profile_friends.hpp b/src/states_screens/online_profile_friends.hpp index acd55c1ba..6aa7d7b97 100644 --- a/src/states_screens/online_profile_friends.hpp +++ b/src/states_screens/online_profile_friends.hpp @@ -72,7 +72,7 @@ public: virtual void onUpdate(float delta) OVERRIDE; virtual void beforeAddingWidget() OVERRIDE; - virtual void onColumnClicked(int columnId); + virtual void onColumnClicked(int columnId) OVERRIDE; // ------------------------------------------------------------------------ /** Triggers a reload of the friend list next time this menu is shown. */ diff --git a/src/states_screens/race_result_gui.hpp b/src/states_screens/race_result_gui.hpp index 8b6a4e37e..cef78b92e 100644 --- a/src/states_screens/race_result_gui.hpp +++ b/src/states_screens/race_result_gui.hpp @@ -200,10 +200,10 @@ private: public: RaceResultGUI(); - virtual void renderGlobal(float dt); + virtual void renderGlobal(float dt) OVERRIDE; /** \brief Implement callback from parent class GUIEngine::Screen */ - virtual void loadedFromFile() {}; + virtual void loadedFromFile() OVERRIDE {}; virtual void init() OVERRIDE; virtual void tearDown() OVERRIDE; @@ -218,11 +218,11 @@ public: friend class GUIEngine::ScreenSingleton; /** Should not be called anymore. */ - const core::dimension2du getMiniMapSize() const + const core::dimension2du getMiniMapSize() const OVERRIDE { assert(false); return core::dimension2du(0, 0); } /** No kart specific view needs to be rendered in the result gui. */ - virtual void renderPlayerView(const Camera *camera, float dt) {} + virtual void renderPlayerView(const Camera *camera, float dt) OVERRIDE {} virtual void onUpdate(float dt) OVERRIDE; @@ -236,7 +236,7 @@ public: const video::SColor &color= video::SColor(255, 255, 0, 255), bool important=true, - bool big_font=false) { } + bool big_font=false) OVERRIDE { } void nextPhase(); @@ -252,7 +252,7 @@ public: */ void setHighscore(int rank); - virtual void onConfirm(); + virtual void onConfirm() OVERRIDE; }; // RaceResultGUI #endif diff --git a/src/states_screens/register_screen.hpp b/src/states_screens/register_screen.hpp index edf935f6c..6eb500739 100644 --- a/src/states_screens/register_screen.hpp +++ b/src/states_screens/register_screen.hpp @@ -40,7 +40,7 @@ private: void makeEntryFieldsVisible(); void handleLocalName(const irr::core::stringw &local_name); void doRegister(); - void init(); + void init() OVERRIDE; RegisterScreen(); /** Save the pointer to the info widget, it is widely used. */ @@ -81,7 +81,7 @@ public: virtual void onDialogClose() OVERRIDE; virtual void onFocusChanged(GUIEngine::Widget *previous, GUIEngine::Widget *focus, - int playerID); + int playerID) OVERRIDE; void setRename(PlayerProfile *player); void acceptTerms(); diff --git a/src/states_screens/server_selection.hpp b/src/states_screens/server_selection.hpp index 1d3c9a1b0..40b92fac2 100644 --- a/src/states_screens/server_selection.hpp +++ b/src/states_screens/server_selection.hpp @@ -67,7 +67,7 @@ public: /** \brief implement callback from parent class GUIEngine::Screen */ virtual void beforeAddingWidget() OVERRIDE; - virtual void onColumnClicked(int columnId); + virtual void onColumnClicked(int columnId) OVERRIDE; virtual void init() OVERRIDE; diff --git a/src/states_screens/user_screen.hpp b/src/states_screens/user_screen.hpp index 502a27596..7b98bdfb5 100644 --- a/src/states_screens/user_screen.hpp +++ b/src/states_screens/user_screen.hpp @@ -103,20 +103,20 @@ private: public: /** \brief implement callback from parent class GUIEngine::Screen */ - virtual void loadedFromFile(); + virtual void loadedFromFile() OVERRIDE; /** \brief implement callback from parent class GUIEngine::Screen */ virtual void eventCallback(GUIEngine::Widget* widget, - const std::string& name, const int playerID); + const std::string& name, const int playerID) OVERRIDE; /** \brief implement callback from parent class GUIEngine::Screen */ - virtual void init(); + virtual void init() OVERRIDE; /** \brief implement callback from parent class GUIEngine::Screen */ - virtual void tearDown(); + virtual void tearDown() OVERRIDE; /** \brief implement optional callback from parent class GUIEngine::Screen */ - virtual void unloaded(); + virtual void unloaded() OVERRIDE; void setNewAccountData(bool online, bool auto_login, const core::stringw &online_name="", @@ -149,9 +149,9 @@ private: public: friend class GUIEngine::ScreenSingleton; - virtual void init(); + virtual void init() OVERRIDE; virtual void eventCallback(GUIEngine::Widget* widget, - const std::string& name, const int playerID); + const std::string& name, const int playerID) OVERRIDE; }; // class TabbedUserScreen #endif diff --git a/src/tracks/check_goal.hpp b/src/tracks/check_goal.hpp index d355d797d..85f3d2307 100644 --- a/src/tracks/check_goal.hpp +++ b/src/tracks/check_goal.hpp @@ -51,7 +51,7 @@ public: CheckGoal(const XMLNode &node, unsigned int index); virtual ~CheckGoal() {} virtual void update(float dt) OVERRIDE; - virtual void trigger(unsigned int kart_index); + virtual void trigger(unsigned int kart_index) OVERRIDE; virtual bool isTriggered(const Vec3 &old_pos, const Vec3 &new_pos, unsigned int indx) OVERRIDE; virtual void reset(const Track &track) OVERRIDE;