1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-23 05:11:33 +00:00

Merge pull request #1032 from Allofich/warnings

Add virtual destructors
This commit is contained in:
scrawl 2016-08-21 22:56:15 +02:00 committed by GitHub
commit e6ca339478
4 changed files with 9 additions and 0 deletions

View file

@ -59,6 +59,8 @@ namespace Compiler
mExprParser (errorHandler, context, locals, literals), mAllowExpression (allowExpression) mExprParser (errorHandler, context, locals, literals), mAllowExpression (allowExpression)
{} {}
LineParser::~LineParser() {}
bool LineParser::parseInt (int value, const TokenLoc& loc, Scanner& scanner) bool LineParser::parseInt (int value, const TokenLoc& loc, Scanner& scanner)
{ {
if (mAllowExpression && mState==BeginState) if (mAllowExpression && mState==BeginState)

View file

@ -52,6 +52,9 @@ namespace Compiler
///< \param allowExpression Allow lines consisting of a naked expression ///< \param allowExpression Allow lines consisting of a naked expression
/// (result is send to the messagebox interface) /// (result is send to the messagebox interface)
virtual ~LineParser();
///< destructor
virtual bool parseInt (int value, const TokenLoc& loc, Scanner& scanner); virtual bool parseInt (int value, const TokenLoc& loc, Scanner& scanner);
///< Handle an int token. ///< Handle an int token.
/// \return fetch another token? /// \return fetch another token?

View file

@ -2,6 +2,8 @@
namespace Misc namespace Misc
{ {
MessageFormatParser::~MessageFormatParser() {}
void MessageFormatParser::process(const std::string& m) void MessageFormatParser::process(const std::string& m)
{ {
for (unsigned int i = 0; i < m.size(); ++i) for (unsigned int i = 0; i < m.size(); ++i)

View file

@ -19,6 +19,8 @@ namespace Misc
virtual void visitedCharacter(char c) = 0; virtual void visitedCharacter(char c) = 0;
public: public:
virtual ~MessageFormatParser();
virtual void process(const std::string& message); virtual void process(const std::string& message);
}; };
} }