projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0023266: cppcheck warning: Logical disjunction always evaluates to true
[occt.git]
/
src
/
QANewDBRepNaming
/
QANewDBRepNaming_FeatureCommands.cxx
diff --git
a/src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx
b/src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx
index
001547b
..
f4f00ca
100755
(executable)
--- a/
src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx
+++ b/
src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx
@@
-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;
}