From 344cda4ae63ce61d63c0cad174eb4b3462f03161 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 23 Jan 2016 20:49:01 +0100 Subject: [PATCH] Add missing override keywords --- src/CBot/CBotExternalCall.h | 4 ++-- src/CBot/CBotInstr/CBotBreak.h | 4 ++-- src/CBot/CBotInstr/CBotCase.h | 4 ++-- src/CBot/CBotInstr/CBotCatch.h | 4 ++-- src/CBot/CBotInstr/CBotDefArray.h | 6 +++--- src/CBot/CBotInstr/CBotDefBoolean.h | 4 ++-- src/CBot/CBotInstr/CBotDefClass.h | 4 ++-- src/CBot/CBotInstr/CBotDefFloat.h | 4 ++-- src/CBot/CBotInstr/CBotDefInt.h | 4 ++-- src/CBot/CBotInstr/CBotDefString.h | 4 ++-- src/CBot/CBotInstr/CBotDo.h | 6 +++--- src/CBot/CBotInstr/CBotEmpty.h | 2 +- src/CBot/CBotInstr/CBotExprLitBool.h | 2 +- src/CBot/CBotInstr/CBotExprLitNan.h | 4 ++-- src/CBot/CBotInstr/CBotExprLitNull.h | 4 ++-- src/CBot/CBotInstr/CBotExprLitNum.h | 4 ++-- src/CBot/CBotInstr/CBotExprLitString.h | 4 ++-- src/CBot/CBotInstr/CBotExprUnaire.h | 4 ++-- src/CBot/CBotInstr/CBotExprVar.h | 4 ++-- src/CBot/CBotInstr/CBotExpression.h | 4 ++-- src/CBot/CBotInstr/CBotFieldExpr.h | 4 ++-- src/CBot/CBotInstr/CBotFor.h | 6 +++--- src/CBot/CBotInstr/CBotFunction.h | 6 +++--- src/CBot/CBotInstr/CBotIf.h | 4 ++-- src/CBot/CBotInstr/CBotIndexExpr.h | 4 ++-- src/CBot/CBotInstr/CBotInstrCall.h | 6 +++--- src/CBot/CBotInstr/CBotInstrMethode.h | 6 +++--- src/CBot/CBotInstr/CBotLeftExpr.h | 4 ++-- src/CBot/CBotInstr/CBotLeftExprVar.h | 4 ++-- src/CBot/CBotInstr/CBotListArray.h | 4 ++-- src/CBot/CBotInstr/CBotListExpression.h | 4 ++-- src/CBot/CBotInstr/CBotListInstr.h | 4 ++-- src/CBot/CBotInstr/CBotLogicExpr.h | 4 ++-- src/CBot/CBotInstr/CBotNew.h | 6 +++--- src/CBot/CBotInstr/CBotPostIncExpr.h | 4 ++-- src/CBot/CBotInstr/CBotPreIncExpr.h | 4 ++-- src/CBot/CBotInstr/CBotReturn.h | 4 ++-- src/CBot/CBotInstr/CBotSwitch.h | 4 ++-- src/CBot/CBotInstr/CBotThrow.h | 4 ++-- src/CBot/CBotInstr/CBotTry.h | 4 ++-- src/CBot/CBotInstr/CBotTwoOpExpr.h | 6 +++--- src/CBot/CBotInstr/CBotWhile.h | 6 +++--- 42 files changed, 91 insertions(+), 91 deletions(-) diff --git a/src/CBot/CBotExternalCall.h b/src/CBot/CBotExternalCall.h index d6554090..6bc2c41b 100644 --- a/src/CBot/CBotExternalCall.h +++ b/src/CBot/CBotExternalCall.h @@ -97,8 +97,8 @@ public: */ virtual ~CBotExternalCallDefault(); - virtual CBotTypResult Compile(CBotVar* thisVar, CBotVar* args, void* user); - virtual bool Run(CBotVar* thisVar, CBotStack* pStack); + virtual CBotTypResult Compile(CBotVar* thisVar, CBotVar* args, void* user) override; + virtual bool Run(CBotVar* thisVar, CBotStack* pStack) override; private: RuntimeFunc m_rExec; diff --git a/src/CBot/CBotInstr/CBotBreak.h b/src/CBot/CBotInstr/CBotBreak.h index 97331322..2d07831e 100644 --- a/src/CBot/CBotInstr/CBotBreak.h +++ b/src/CBot/CBotInstr/CBotBreak.h @@ -57,8 +57,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotBreak"; } - virtual std::string GetDebugData(); + virtual const std::string GetDebugName() override { return "CBotBreak"; } + virtual std::string GetDebugData() override; private: //! A label if there is diff --git a/src/CBot/CBotInstr/CBotCase.h b/src/CBot/CBotInstr/CBotCase.h index d100a709..1bc1d982 100644 --- a/src/CBot/CBotInstr/CBotCase.h +++ b/src/CBot/CBotInstr/CBotCase.h @@ -68,8 +68,8 @@ public: bool CompCase(CBotStack* &pj, int val) override; protected: - virtual const std::string GetDebugName() { return "CBotCase"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotCase"; } + virtual std::map GetDebugLinks() override; private: //! Value to compare. diff --git a/src/CBot/CBotInstr/CBotCatch.h b/src/CBot/CBotInstr/CBotCatch.h index 96db38a6..74c0c6cd 100644 --- a/src/CBot/CBotInstr/CBotCatch.h +++ b/src/CBot/CBotInstr/CBotCatch.h @@ -73,8 +73,8 @@ public: void RestoreCondState(CBotStack* &pj, bool bMain); protected: - virtual const std::string GetDebugName() { return "CBotCatch"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotCatch"; } + virtual std::map GetDebugLinks() override; private: //! Instructions diff --git a/src/CBot/CBotInstr/CBotDefArray.h b/src/CBot/CBotInstr/CBotDefArray.h index 826bd92a..13de15ff 100644 --- a/src/CBot/CBotInstr/CBotDefArray.h +++ b/src/CBot/CBotInstr/CBotDefArray.h @@ -64,9 +64,9 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotDefArray"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotDefArray"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: //! The variables to initialize. diff --git a/src/CBot/CBotInstr/CBotDefBoolean.h b/src/CBot/CBotInstr/CBotDefBoolean.h index 298232d1..71d4674e 100644 --- a/src/CBot/CBotInstr/CBotDefBoolean.h +++ b/src/CBot/CBotInstr/CBotDefBoolean.h @@ -58,8 +58,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotDefBoolean"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotDefBoolean"; } + virtual std::map GetDebugLinks() override; private: //! Variable to initialise. diff --git a/src/CBot/CBotInstr/CBotDefClass.h b/src/CBot/CBotInstr/CBotDefClass.h index 9492f1a3..fba93965 100644 --- a/src/CBot/CBotInstr/CBotDefClass.h +++ b/src/CBot/CBotInstr/CBotDefClass.h @@ -69,8 +69,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotClassInstr"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotClassInstr"; } + virtual std::map GetDebugLinks() override; private: diff --git a/src/CBot/CBotInstr/CBotDefFloat.h b/src/CBot/CBotInstr/CBotDefFloat.h index 3b95917c..ea2e34d3 100644 --- a/src/CBot/CBotInstr/CBotDefFloat.h +++ b/src/CBot/CBotInstr/CBotDefFloat.h @@ -58,8 +58,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotDefFloat"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotDefFloat"; } + virtual std::map GetDebugLinks() override; private: //! Variable to initialise. diff --git a/src/CBot/CBotInstr/CBotDefInt.h b/src/CBot/CBotInstr/CBotDefInt.h index 7d273cb1..f78e2cc6 100644 --- a/src/CBot/CBotInstr/CBotDefInt.h +++ b/src/CBot/CBotInstr/CBotDefInt.h @@ -58,8 +58,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotDefInt"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotDefInt"; } + virtual std::map GetDebugLinks() override; private: //! The variable to initialize. diff --git a/src/CBot/CBotInstr/CBotDefString.h b/src/CBot/CBotInstr/CBotDefString.h index f9b7b9c2..4952a662 100644 --- a/src/CBot/CBotInstr/CBotDefString.h +++ b/src/CBot/CBotInstr/CBotDefString.h @@ -58,8 +58,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotDefString"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotDefString"; } + virtual std::map GetDebugLinks() override; private: //! Variable to initialise. diff --git a/src/CBot/CBotInstr/CBotDo.h b/src/CBot/CBotInstr/CBotDo.h index 294ad161..1318dc8f 100644 --- a/src/CBot/CBotInstr/CBotDo.h +++ b/src/CBot/CBotInstr/CBotDo.h @@ -56,9 +56,9 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotDo"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotDo"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: //! Instruction diff --git a/src/CBot/CBotInstr/CBotEmpty.h b/src/CBot/CBotInstr/CBotEmpty.h index 71d91dc3..a27b0ad2 100644 --- a/src/CBot/CBotInstr/CBotEmpty.h +++ b/src/CBot/CBotInstr/CBotEmpty.h @@ -45,7 +45,7 @@ class CBotEmpty : public CBotInstr void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotEmpty"; } + virtual const std::string GetDebugName() override { return "CBotEmpty"; } }; } // namespace CBot diff --git a/src/CBot/CBotInstr/CBotExprLitBool.h b/src/CBot/CBotInstr/CBotExprLitBool.h index e7ce6701..d4606478 100644 --- a/src/CBot/CBotInstr/CBotExprLitBool.h +++ b/src/CBot/CBotInstr/CBotExprLitBool.h @@ -56,7 +56,7 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotExprLitBool"; } + virtual const std::string GetDebugName() override { return "CBotExprLitBool"; } }; } // namespace CBot diff --git a/src/CBot/CBotInstr/CBotExprLitNan.h b/src/CBot/CBotInstr/CBotExprLitNan.h index b8e4b69e..f9bdaed3 100644 --- a/src/CBot/CBotInstr/CBotExprLitNan.h +++ b/src/CBot/CBotInstr/CBotExprLitNan.h @@ -48,8 +48,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotExprLitNan"; } - virtual std::string GetDebugData() { return "nan"; } + virtual const std::string GetDebugName() override { return "CBotExprLitNan"; } + virtual std::string GetDebugData() override { return "nan"; } }; } // namespace CBot diff --git a/src/CBot/CBotInstr/CBotExprLitNull.h b/src/CBot/CBotInstr/CBotExprLitNull.h index 121dd33e..1169b063 100644 --- a/src/CBot/CBotInstr/CBotExprLitNull.h +++ b/src/CBot/CBotInstr/CBotExprLitNull.h @@ -48,8 +48,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotExprLitNull"; } - virtual std::string GetDebugData() { return "null"; } + virtual const std::string GetDebugName() override { return "CBotExprLitNull"; } + virtual std::string GetDebugData() override { return "null"; } }; } // namespace CBot diff --git a/src/CBot/CBotInstr/CBotExprLitNum.h b/src/CBot/CBotInstr/CBotExprLitNum.h index a81e90f0..4fd8effd 100644 --- a/src/CBot/CBotInstr/CBotExprLitNum.h +++ b/src/CBot/CBotInstr/CBotExprLitNum.h @@ -59,8 +59,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotExprLitNum"; } - virtual std::string GetDebugData(); + virtual const std::string GetDebugName() override { return "CBotExprLitNum"; } + virtual std::string GetDebugData() override; private: //! The type of number. diff --git a/src/CBot/CBotInstr/CBotExprLitString.h b/src/CBot/CBotInstr/CBotExprLitString.h index fdda273c..4c05d7a1 100644 --- a/src/CBot/CBotInstr/CBotExprLitString.h +++ b/src/CBot/CBotInstr/CBotExprLitString.h @@ -56,8 +56,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotExprLitString"; } - virtual std::string GetDebugData(); + virtual const std::string GetDebugName() override { return "CBotExprLitString"; } + virtual std::string GetDebugData() override; }; } // namespace CBot diff --git a/src/CBot/CBotInstr/CBotExprUnaire.h b/src/CBot/CBotInstr/CBotExprUnaire.h index 83d679c9..f4f4e479 100644 --- a/src/CBot/CBotInstr/CBotExprUnaire.h +++ b/src/CBot/CBotInstr/CBotExprUnaire.h @@ -56,8 +56,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotExprUnaire"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotExprUnaire"; } + virtual std::map GetDebugLinks() override; private: //! Expression to be evaluated. diff --git a/src/CBot/CBotInstr/CBotExprVar.h b/src/CBot/CBotInstr/CBotExprVar.h index ba3f54b8..1bd93716 100644 --- a/src/CBot/CBotInstr/CBotExprVar.h +++ b/src/CBot/CBotInstr/CBotExprVar.h @@ -89,8 +89,8 @@ public: void RestoreStateVar(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotExprVar"; } - virtual std::string GetDebugData(); + virtual const std::string GetDebugName() override { return "CBotExprVar"; } + virtual std::string GetDebugData() override; private: long m_nIdent; diff --git a/src/CBot/CBotInstr/CBotExpression.h b/src/CBot/CBotInstr/CBotExpression.h index 80cf1b86..7aace510 100644 --- a/src/CBot/CBotInstr/CBotExpression.h +++ b/src/CBot/CBotInstr/CBotExpression.h @@ -67,8 +67,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotExpression"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotExpression"; } + virtual std::map GetDebugLinks() override; private: //! Left operand diff --git a/src/CBot/CBotInstr/CBotFieldExpr.h b/src/CBot/CBotInstr/CBotFieldExpr.h index 8feecc63..1e2781b3 100644 --- a/src/CBot/CBotInstr/CBotFieldExpr.h +++ b/src/CBot/CBotInstr/CBotFieldExpr.h @@ -66,8 +66,8 @@ public: void RestoreStateVar(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotFieldExpr"; } - virtual std::string GetDebugData(); + virtual const std::string GetDebugName() override { return "CBotFieldExpr"; } + virtual std::string GetDebugData() override; private: friend class CBotExpression; diff --git a/src/CBot/CBotInstr/CBotFor.h b/src/CBot/CBotInstr/CBotFor.h index 4b9fde8c..19f75858 100644 --- a/src/CBot/CBotInstr/CBotFor.h +++ b/src/CBot/CBotInstr/CBotFor.h @@ -56,9 +56,9 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotFor"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotFor"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: //! Initial intruction diff --git a/src/CBot/CBotInstr/CBotFunction.h b/src/CBot/CBotInstr/CBotFunction.h index 510ba1b1..a1603f74 100644 --- a/src/CBot/CBotInstr/CBotFunction.h +++ b/src/CBot/CBotInstr/CBotFunction.h @@ -243,9 +243,9 @@ public: CBotGet modestop); protected: - virtual const std::string GetDebugName() { return "CBotFunction"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotFunction"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: friend class CBotDebug; diff --git a/src/CBot/CBotInstr/CBotIf.h b/src/CBot/CBotInstr/CBotIf.h index 364da0fb..0747bbe5 100644 --- a/src/CBot/CBotInstr/CBotIf.h +++ b/src/CBot/CBotInstr/CBotIf.h @@ -57,8 +57,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotIf"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotIf"; } + virtual std::map GetDebugLinks() override; private: //! Condition diff --git a/src/CBot/CBotInstr/CBotIndexExpr.h b/src/CBot/CBotInstr/CBotIndexExpr.h index f161f08b..ba941904 100644 --- a/src/CBot/CBotInstr/CBotIndexExpr.h +++ b/src/CBot/CBotInstr/CBotIndexExpr.h @@ -61,8 +61,8 @@ public: void RestoreStateVar(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotIndexExpr"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotIndexExpr"; } + virtual std::map GetDebugLinks() override; private: //! Expression for calculating the index. diff --git a/src/CBot/CBotInstr/CBotInstrCall.h b/src/CBot/CBotInstr/CBotInstrCall.h index 610659fb..e40e7e8a 100644 --- a/src/CBot/CBotInstr/CBotInstrCall.h +++ b/src/CBot/CBotInstr/CBotInstrCall.h @@ -58,9 +58,9 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotInstrCall"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotInstrCall"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: //! The parameters to be evaluated. diff --git a/src/CBot/CBotInstr/CBotInstrMethode.h b/src/CBot/CBotInstr/CBotInstrMethode.h index 089d4af8..d1fc4244 100644 --- a/src/CBot/CBotInstr/CBotInstrMethode.h +++ b/src/CBot/CBotInstr/CBotInstrMethode.h @@ -68,9 +68,9 @@ public: void RestoreStateVar(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotInstrMethode"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotInstrMethode"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: //! The parameters to be evaluated. diff --git a/src/CBot/CBotInstr/CBotLeftExpr.h b/src/CBot/CBotInstr/CBotLeftExpr.h index 35ac536f..12a40e0f 100644 --- a/src/CBot/CBotInstr/CBotLeftExpr.h +++ b/src/CBot/CBotInstr/CBotLeftExpr.h @@ -87,8 +87,8 @@ public: void RestoreStateVar(CBotStack* &pile, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotLeftExpr"; } - virtual std::string GetDebugData(); + virtual const std::string GetDebugName() override { return "CBotLeftExpr"; } + virtual std::string GetDebugData() override; private: long m_nIdent; diff --git a/src/CBot/CBotInstr/CBotLeftExprVar.h b/src/CBot/CBotInstr/CBotLeftExprVar.h index 52d77b3e..34355b33 100644 --- a/src/CBot/CBotInstr/CBotLeftExprVar.h +++ b/src/CBot/CBotInstr/CBotLeftExprVar.h @@ -51,8 +51,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotLeftExprVar"; } - virtual std::string GetDebugData(); + virtual const std::string GetDebugName() override { return "CBotLeftExprVar"; } + virtual std::string GetDebugData() override; public: //! Type of variable declared. diff --git a/src/CBot/CBotInstr/CBotListArray.h b/src/CBot/CBotInstr/CBotListArray.h index fe1781b4..be089f2c 100644 --- a/src/CBot/CBotInstr/CBotListArray.h +++ b/src/CBot/CBotInstr/CBotListArray.h @@ -58,8 +58,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotListArray"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotListArray"; } + virtual std::map GetDebugLinks() override; private: //! An expression for an element others are linked with CBotInstr :: m_next3; diff --git a/src/CBot/CBotInstr/CBotListExpression.h b/src/CBot/CBotInstr/CBotListExpression.h index c42c9e81..1ec797f7 100644 --- a/src/CBot/CBotInstr/CBotListExpression.h +++ b/src/CBot/CBotInstr/CBotListExpression.h @@ -72,8 +72,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotListExpression"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotListExpression"; } + virtual std::map GetDebugLinks() override; private: //! The first expression to be evaluated diff --git a/src/CBot/CBotInstr/CBotListInstr.h b/src/CBot/CBotInstr/CBotListInstr.h index c95316f7..13ae2a79 100644 --- a/src/CBot/CBotInstr/CBotListInstr.h +++ b/src/CBot/CBotInstr/CBotListInstr.h @@ -57,8 +57,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotListInstr"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotListInstr"; } + virtual std::map GetDebugLinks() override; private: //! Instructions to do. diff --git a/src/CBot/CBotInstr/CBotLogicExpr.h b/src/CBot/CBotInstr/CBotLogicExpr.h index 899b392c..747b9952 100644 --- a/src/CBot/CBotInstr/CBotLogicExpr.h +++ b/src/CBot/CBotInstr/CBotLogicExpr.h @@ -51,8 +51,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotLogicExpr"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotLogicExpr"; } + virtual std::map GetDebugLinks() override; private: //! Test to evaluate diff --git a/src/CBot/CBotInstr/CBotNew.h b/src/CBot/CBotInstr/CBotNew.h index 4645d87b..14012176 100644 --- a/src/CBot/CBotInstr/CBotNew.h +++ b/src/CBot/CBotInstr/CBotNew.h @@ -56,9 +56,9 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotNew"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotNew"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: //! The parameters to be evaluated diff --git a/src/CBot/CBotInstr/CBotPostIncExpr.h b/src/CBot/CBotInstr/CBotPostIncExpr.h index e1600b03..6cd07ed9 100644 --- a/src/CBot/CBotInstr/CBotPostIncExpr.h +++ b/src/CBot/CBotInstr/CBotPostIncExpr.h @@ -50,8 +50,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotPostIncExpr"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotPostIncExpr"; } + virtual std::map GetDebugLinks() override; private: CBotInstr* m_instr; diff --git a/src/CBot/CBotInstr/CBotPreIncExpr.h b/src/CBot/CBotInstr/CBotPreIncExpr.h index 600f91ac..ed427254 100644 --- a/src/CBot/CBotInstr/CBotPreIncExpr.h +++ b/src/CBot/CBotInstr/CBotPreIncExpr.h @@ -50,8 +50,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotPreIncExpr"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotPreIncExpr"; } + virtual std::map GetDebugLinks() override; private: CBotInstr* m_instr; diff --git a/src/CBot/CBotInstr/CBotReturn.h b/src/CBot/CBotInstr/CBotReturn.h index b652bac0..97a8ba08 100644 --- a/src/CBot/CBotInstr/CBotReturn.h +++ b/src/CBot/CBotInstr/CBotReturn.h @@ -56,8 +56,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotReturn"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotReturn"; } + virtual std::map GetDebugLinks() override; private: //! Parameter of return diff --git a/src/CBot/CBotInstr/CBotSwitch.h b/src/CBot/CBotInstr/CBotSwitch.h index fd148254..8627da30 100644 --- a/src/CBot/CBotInstr/CBotSwitch.h +++ b/src/CBot/CBotInstr/CBotSwitch.h @@ -58,8 +58,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotSwitch"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotSwitch"; } + virtual std::map GetDebugLinks() override; private: //! Value to seek diff --git a/src/CBot/CBotInstr/CBotThrow.h b/src/CBot/CBotInstr/CBotThrow.h index f9c46ab9..a70cbede 100644 --- a/src/CBot/CBotInstr/CBotThrow.h +++ b/src/CBot/CBotInstr/CBotThrow.h @@ -56,8 +56,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotThrow"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotThrow"; } + virtual std::map GetDebugLinks() override; private: //! The value to send. diff --git a/src/CBot/CBotInstr/CBotTry.h b/src/CBot/CBotInstr/CBotTry.h index af61948f..546d6657 100644 --- a/src/CBot/CBotInstr/CBotTry.h +++ b/src/CBot/CBotInstr/CBotTry.h @@ -59,8 +59,8 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotTry"; } - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotTry"; } + virtual std::map GetDebugLinks() override; private: //! Instructions diff --git a/src/CBot/CBotInstr/CBotTwoOpExpr.h b/src/CBot/CBotInstr/CBotTwoOpExpr.h index b1375149..5fb1d599 100644 --- a/src/CBot/CBotInstr/CBotTwoOpExpr.h +++ b/src/CBot/CBotInstr/CBotTwoOpExpr.h @@ -82,9 +82,9 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotTwoOpExpr"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotTwoOpExpr"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: //! Left element diff --git a/src/CBot/CBotInstr/CBotWhile.h b/src/CBot/CBotInstr/CBotWhile.h index 9aed46c9..2e16148c 100644 --- a/src/CBot/CBotInstr/CBotWhile.h +++ b/src/CBot/CBotInstr/CBotWhile.h @@ -65,9 +65,9 @@ public: void RestoreState(CBotStack* &pj, bool bMain) override; protected: - virtual const std::string GetDebugName() { return "CBotWhile"; } - virtual std::string GetDebugData(); - virtual std::map GetDebugLinks(); + virtual const std::string GetDebugName() override { return "CBotWhile"; } + virtual std::string GetDebugData() override; + virtual std::map GetDebugLinks() override; private: //! Condition