diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-22 02:34:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-22 21:22:21 +0300 |
commit | 4a5cdfe19cbb50e3b58149c6e91312366ee4b771 (patch) | |
tree | 7a2bbae95b5f6642731f2a1257913baad71d028d /src/playerrelations.cpp | |
parent | 3dcf21babe03cee5080a25e787e1d7e72124288e (diff) | |
download | manaplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.gz manaplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.bz2 manaplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.xz manaplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.zip |
Add override keyword to most overriden methods.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r-- | src/playerrelations.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index b163f57b0..7e92feb5f 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -72,7 +72,7 @@ class PlayerConfSerialiser final : public: virtual ConfigurationObject *writeConfigItem( std::pair<std::string, PlayerRelation *> value, - ConfigurationObject *cobj) + ConfigurationObject *cobj) override { if (!cobj || !value.second) return nullptr; @@ -85,7 +85,7 @@ public: virtual std::map<std::string, PlayerRelation *> * readConfigItem(ConfigurationObject *const cobj, - std::map<std::string, PlayerRelation *> *container) + std::map<std::string, PlayerRelation *> *container) override { if (!cobj) return container; @@ -474,7 +474,7 @@ public: } virtual void ignore(Being *const being A_UNUSED, - const unsigned int flags A_UNUSED) + const unsigned int flags A_UNUSED) override { } }; @@ -489,7 +489,8 @@ public: mShortName = "dotdotdot"; } - virtual void ignore(Being *const being, const unsigned int flags A_UNUSED) + virtual void ignore(Being *const being, + const unsigned int flags A_UNUSED) override { if (!being) return; @@ -510,7 +511,8 @@ public: mShortName = "blinkname"; } - virtual void ignore(Being *const being, const unsigned int flags A_UNUSED) + virtual void ignore(Being *const being, + const unsigned int flags A_UNUSED) override { if (!being) return; @@ -532,7 +534,8 @@ public: mShortName = shortname; } - virtual void ignore(Being *const being, const unsigned int flags A_UNUSED) + virtual void ignore(Being *const being, + const unsigned int flags A_UNUSED) override { if (!being) return; |