1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0027068: Coding - eliminate VC++ 14 compiler warnings in MFC samples

Code is corrected to avoid compiler warnings
This commit is contained in:
abv
2016-01-09 09:33:40 +03:00
parent e31a8e52bb
commit e0280ce92e
8 changed files with 93 additions and 95 deletions

View File

@@ -728,15 +728,15 @@ Standard_Boolean CImportExport::SaveVRML(const Standard_CString&
VrmlData_ShapeConvert converter(scene/*, 0.001*/); // from mm to meters
Standard_Integer iShape = 1; // Counter of shapes
for ( int i = 1; i <= aHSequenceOfShape->Length(); i++ )
{
for (int i = 1; i <= aHSequenceOfShape->Length(); i++)
{
// Shape
TopoDS_Shape shape = aHSequenceOfShape->Value( i );
if ( shape.IsNull() )
{
ReturnMessage += " Error : Invalid shape \n";
ReturnValue = Standard_False;
continue;
TopoDS_Shape shape = aHSequenceOfShape->Value(i);
if (shape.IsNull())
{
ReturnMessage += " Error : Invalid shape \n";
ReturnValue = Standard_False;
continue;
}
// Color
@@ -793,8 +793,8 @@ Standard_Boolean CImportExport::SaveVRML(const Standard_CString&
Handle(VrmlData_Node) node = itr.Value();
if (node->DynamicType() == STANDARD_TYPE(VrmlData_ShapeNode))
{
Handle(VrmlData_ShapeNode) shape = Handle(VrmlData_ShapeNode)::DownCast(node);
shape->SetAppearance(appearance);
Handle(VrmlData_ShapeNode) aShape = Handle(VrmlData_ShapeNode)::DownCast(node);
aShape->SetAppearance(appearance);
}
else if (itr.Value()->DynamicType() == STANDARD_TYPE(VrmlData_Group))
{