From 23eb98d2cadf13d5a517f279a93e15aca6ea5d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 16 Jun 2018 16:31:07 +0200 Subject: [PATCH] Renamed Check::_name --- lib/check.cpp | 2 +- lib/check.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/check.cpp b/lib/check.cpp index 385d9b52d..982394187 100644 --- a/lib/check.cpp +++ b/lib/check.cpp @@ -25,7 +25,7 @@ //--------------------------------------------------------------------------- Check::Check(const std::string &aname) - : mTokenizer(nullptr), mSettings(nullptr), mErrorLogger(nullptr), _name(aname) + : mTokenizer(nullptr), mSettings(nullptr), mErrorLogger(nullptr), mName(aname) { for (std::list::iterator i = instances().begin(); i != instances().end(); ++i) { if ((*i)->name() > aname) { diff --git a/lib/check.h b/lib/check.h index 2c23d33b2..d23869d76 100644 --- a/lib/check.h +++ b/lib/check.h @@ -52,7 +52,7 @@ public: /** This constructor is used when running checks. */ Check(const std::string &aname, const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) - : mTokenizer(tokenizer), mSettings(settings), mErrorLogger(errorLogger), _name(aname) { + : mTokenizer(tokenizer), mSettings(settings), mErrorLogger(errorLogger), mName(aname) { } virtual ~Check() { @@ -75,7 +75,7 @@ public: /** class name, used to generate documentation */ const std::string& name() const { - return _name; + return mName; } /** get information about this class, used to generate documentation */ @@ -182,7 +182,7 @@ protected: */ bool wrongData(const Token *tok, bool condition, const char *str); private: - const std::string _name; + const std::string mName; /** disabled assignment operator and copy constructor */ void operator=(const Check &) = delete;