refactoring - added a function getErrorMessages that will be used to get a list of error messages

This commit is contained in:
Daniel Marjamäki 2009-03-21 14:07:51 +01:00
parent bcad5afb26
commit 001cb0a7ec
2 changed files with 7 additions and 0 deletions

View File

@ -60,6 +60,9 @@ public:
/** run checks, the token list is simplified */
virtual void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) = 0;
/** get error messages */
virtual void getErrorMessages()
{ }
protected:
const Tokenizer * const _tokenizer;

View File

@ -83,6 +83,10 @@ private:
void iteratorsError(const Token *tok, const std::string &container1, const std::string &container2);
void getErrorMessages()
{
iteratorsError(0, "container1", "container2");
}
};
//---------------------------------------------------------------------------