Renamed Check::_name

This commit is contained in:
Daniel Marjamäki 2018-06-16 16:31:07 +02:00
parent 807fbfd318
commit 23eb98d2ca
2 changed files with 4 additions and 4 deletions

View File

@ -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<Check*>::iterator i = instances().begin(); i != instances().end(); ++i) {
if ((*i)->name() > aname) {

View File

@ -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;