0023266: cppcheck warning: Logical disjunction always evaluates to true
[occt.git] / src / QANewDBRepNaming / QANewDBRepNaming_FeatureCommands.cxx
index 001547b..f4f00ca 100755 (executable)
@@ -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;
   }