Renamed Check::_name
This commit is contained in:
parent
807fbfd318
commit
23eb98d2ca
|
@ -25,7 +25,7 @@
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
Check::Check(const std::string &aname)
|
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) {
|
for (std::list<Check*>::iterator i = instances().begin(); i != instances().end(); ++i) {
|
||||||
if ((*i)->name() > aname) {
|
if ((*i)->name() > aname) {
|
||||||
|
|
|
@ -52,7 +52,7 @@ public:
|
||||||
|
|
||||||
/** This constructor is used when running checks. */
|
/** This constructor is used when running checks. */
|
||||||
Check(const std::string &aname, const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
|
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() {
|
virtual ~Check() {
|
||||||
|
@ -75,7 +75,7 @@ public:
|
||||||
|
|
||||||
/** class name, used to generate documentation */
|
/** class name, used to generate documentation */
|
||||||
const std::string& name() const {
|
const std::string& name() const {
|
||||||
return _name;
|
return mName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** get information about this class, used to generate documentation */
|
/** get information about this class, used to generate documentation */
|
||||||
|
@ -182,7 +182,7 @@ protected:
|
||||||
*/
|
*/
|
||||||
bool wrongData(const Token *tok, bool condition, const char *str);
|
bool wrongData(const Token *tok, bool condition, const char *str);
|
||||||
private:
|
private:
|
||||||
const std::string _name;
|
const std::string mName;
|
||||||
|
|
||||||
/** disabled assignment operator and copy constructor */
|
/** disabled assignment operator and copy constructor */
|
||||||
void operator=(const Check &) = delete;
|
void operator=(const Check &) = delete;
|
||||||
|
|
Loading…
Reference in New Issue