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;