mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 18:40:01 +00:00
Merge pull request #1032 from Allofich/warnings
Add virtual destructors
This commit is contained in:
commit
e6ca339478
@ -59,6 +59,8 @@ namespace Compiler
|
||||
mExprParser (errorHandler, context, locals, literals), mAllowExpression (allowExpression)
|
||||
{}
|
||||
|
||||
LineParser::~LineParser() {}
|
||||
|
||||
bool LineParser::parseInt (int value, const TokenLoc& loc, Scanner& scanner)
|
||||
{
|
||||
if (mAllowExpression && mState==BeginState)
|
||||
|
@ -51,6 +51,9 @@ namespace Compiler
|
||||
bool allowExpression = false);
|
||||
///< \param allowExpression Allow lines consisting of a naked expression
|
||||
/// (result is send to the messagebox interface)
|
||||
|
||||
virtual ~LineParser();
|
||||
///< destructor
|
||||
|
||||
virtual bool parseInt (int value, const TokenLoc& loc, Scanner& scanner);
|
||||
///< Handle an int token.
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
namespace Misc
|
||||
{
|
||||
MessageFormatParser::~MessageFormatParser() {}
|
||||
|
||||
void MessageFormatParser::process(const std::string& m)
|
||||
{
|
||||
for (unsigned int i = 0; i < m.size(); ++i)
|
||||
|
@ -19,6 +19,8 @@ namespace Misc
|
||||
virtual void visitedCharacter(char c) = 0;
|
||||
|
||||
public:
|
||||
virtual ~MessageFormatParser();
|
||||
|
||||
virtual void process(const std::string& message);
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user