1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0023266: cppcheck warning: Logical disjunction always evaluates to true

Logical disjunction changed to  Logical conjunction, it evaluates true only then number of parameters isn't right.
This commit is contained in:
ika 2012-10-09 18:00:27 +04:00
parent 8b595ab775
commit a7ae5c810a

View File

@ -101,7 +101,7 @@ static Standard_Integer QANewDBRepNaming_NameBooleanOperationFeat (Draw_Interpre
Standard_Integer nb,
const char ** arg)
{
if (nb != 6 || nb != 7) {
if (nb != 6 && nb != 7) {
di << "QANewDBRepNaming_NameBooleanOperationFeat : Error" << "\n";
return 1;
}