mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024574: ICC compiler warnings on Windows
NCollection_UtfString and NCollection_UtfIterator classes are refactored to use methods overloading instead of switches to dispatch implementation depending on character (Unicode code unit) size. ICC-specific preprocessor directives are added to avoid warnings. Unused local functions and variables, class methods, unreachable statements, and extra throw() declarations reported by ICC are removed. Usage of "expl" for name of local variable is avoided as it conflicts with standard C function "expl" defined in math.h as preprocessor macro. Non-standard (MS-specific) argument envp is removed in definition of main() function on Windows. Functions _main_ and _WinMain_ are renamed to Draw_Main and Draw_WinMain, respectively, to avoid using names reserved in C++. Doxygen warning is fixed in XDE User's Guide.
This commit is contained in:
@@ -277,10 +277,10 @@ Standard_Boolean Draft_Modification::InternalAdd(const TopoDS_Face& F,
|
||||
}
|
||||
}
|
||||
|
||||
TopExp_Explorer expl(F,TopAbs_EDGE);
|
||||
TopExp_Explorer aExp(F,TopAbs_EDGE);
|
||||
TopTools_MapOfShape MapOfE;
|
||||
while (expl.More() && badShape.IsNull()) {
|
||||
const TopoDS_Edge& edg = TopoDS::Edge(expl.Current());
|
||||
while (aExp.More() && badShape.IsNull()) {
|
||||
const TopoDS_Edge& edg = TopoDS::Edge(aExp.Current());
|
||||
if (!myEMap.Contains(edg)) {
|
||||
Standard_Boolean addedg = Standard_False;
|
||||
Standard_Boolean addface = Standard_False;
|
||||
@@ -393,7 +393,7 @@ Standard_Boolean Draft_Modification::InternalAdd(const TopoDS_Face& F,
|
||||
}
|
||||
}
|
||||
}
|
||||
expl.Next();
|
||||
aExp.Next();
|
||||
}
|
||||
return (badShape.IsNull());
|
||||
}
|
||||
|
Reference in New Issue
Block a user