Fixed cppcheck message in checkclass.cpp
This commit is contained in:
parent
7a1e64fdd4
commit
5980eb81d1
|
@ -287,7 +287,7 @@ bool CheckClass::canNotCopy(const Scope *scope)
|
|||
publicAssign = true;
|
||||
}
|
||||
|
||||
return constructor && !(publicAssign | publicCopy);
|
||||
return constructor && !(publicAssign || publicCopy);
|
||||
}
|
||||
|
||||
void CheckClass::assignVar(const std::string &varname, const Scope *scope, std::vector<Usage> &usage)
|
||||
|
|
Loading…
Reference in New Issue