Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
339862d
)
In StringToFunctorType(), return FT_Undefined for an invalid input
author
eap
<eap@opencascade.com>
Wed, 10 Aug 2011 10:27:45 +0000
(10:27 +0000)
committer
eap
<eap@opencascade.com>
Wed, 10 Aug 2011 10:27:45 +0000
(10:27 +0000)
src/SMESH_I/SMESH_Filter_i.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Filter_i.cxx
b/src/SMESH_I/SMESH_Filter_i.cxx
index 8dd7ca4f03ac19d7e9c3be2f18b1227ef9be39ce..1728f7dee2545cb0d0ec6eb2119bf2c288b1138d 100644
(file)
--- a/
src/SMESH_I/SMESH_Filter_i.cxx
+++ b/
src/SMESH_I/SMESH_Filter_i.cxx
@@
-3811,8
+3811,8
@@
SMESH::FunctorType SMESH::StringToFunctorType(const char* str)
{
std::string name( str + 3 ); // skip "FT_"
const char** functNames = getFunctNames();
- int ft =
SMESH::FT_Undefined
;
- for ( ; ft
>= 0; --
ft )
+ int ft =
0
;
+ for ( ; ft
< SMESH::FT_Undefined; ++
ft )
if ( name == ( functNames[ft] + 3 ))
break;