From 001cb0a7ec0d8e7911546b6025d2f5c0b49d8229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 21 Mar 2009 14:07:51 +0100 Subject: [PATCH] refactoring - added a function getErrorMessages that will be used to get a list of error messages --- src/check.h | 3 +++ src/checkstl.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/check.h b/src/check.h index b9b497907..d8424c627 100644 --- a/src/check.h +++ b/src/check.h @@ -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; diff --git a/src/checkstl.h b/src/checkstl.h index 2ffee895b..7bf46a585 100644 --- a/src/checkstl.h +++ b/src/checkstl.h @@ -83,6 +83,10 @@ private: void iteratorsError(const Token *tok, const std::string &container1, const std::string &container2); + void getErrorMessages() + { + iteratorsError(0, "container1", "container2"); + } }; //---------------------------------------------------------------------------