#pragma warning (disable:4996)
#endif
+namespace
+{
+ static Handle(TopoDS_TShape) THE_NULL_SHAPE;
+}
//=======================================================================
//function : GetColor
// }
// myTShape = aWire.TShape();
//}
- return Handle(TopoDS_TShape)();
+ return THE_NULL_SHAPE;
}
//=======================================================================
if (theFile.Size() > (Standard_Size)IntegerLast())
return Standard_False;
- myData.reset(new TColStd_HArray1OfByte(1, (Standard_Integer)theFile.Size()));
+ myData.reset(new TColStd_HArray1OfByte(1, static_cast<Standard_Integer>(theFile.Size())));
Standard_Integer nbReadBytes = 0;
theFile.Read((Standard_Address)&myData->First(), myData->Length(), nbReadBytes);
if (nbReadBytes < myData->Length())