class checking: only check class assignments if the --all has been given

This commit is contained in:
Daniel Marjamäki 2009-05-01 07:36:35 +02:00
parent 534d0e9939
commit 6d53343d32
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ void CheckClass::CheckConstructors(const Token *tok1, const char funcname[])
const char * const className = tok1->strAt(1);
// Check that all member variables are initialized..
bool withClasses = bool(std::string(funcname) == "operator =");
bool withClasses = bool(_settings->_showAll && std::string(funcname) == "operator =");
struct VAR *varlist = ClassChecking_GetVarList(tok1, withClasses);
int indentlevel = 0;