From 5980eb81d1c779d37fa08bbf3f0f2e1204583c53 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sat, 29 Sep 2012 12:19:30 +0200 Subject: [PATCH] Fixed cppcheck message in checkclass.cpp --- lib/checkclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index c6e5c63fa..d91696df2 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -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)