From b5b3ea33f8d75140bd73888d38f8ca370cff91fc Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 25 Jun 2013 18:12:50 +0200 Subject: [PATCH] Added C++11 override keyword. --- source/sprites/Enemy.h | 2 +- source/sprites/Player.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sprites/Enemy.h b/source/sprites/Enemy.h index 8b56c03..7b4e149 100644 --- a/source/sprites/Enemy.h +++ b/source/sprites/Enemy.h @@ -18,7 +18,7 @@ public: const sf::Vector2f& position); private: - virtual void onThink(int elapsed); + virtual void onThink(int elapsed) override; }; #endif /* DG_ENEMY_H_ */ diff --git a/source/sprites/Player.h b/source/sprites/Player.h index ffc4e35..fc4aee1 100644 --- a/source/sprites/Player.h +++ b/source/sprites/Player.h @@ -41,7 +41,7 @@ public: using Character::reload; private: - void onThink(int elapsed); + void onThink(int elapsed) override; private: sf::Vector2f mCrosshairPosition; //< Relative position of the point to fire at (mouse cursor).