/* Local variables */
intptr_t ideb;
doublereal dtab[32000];
- intptr_t itab[160] /* was [4][40] */;
+ intptr_t itab[160] = {0} /* was [4][40] */;
intptr_t ipre;
integer i__, j, k;
/* Local variables */
char cfmt[1];
- doublereal dfmt;
+ doublereal dfmt = 0.0; // unused
integer ifmt, i__, nufmt, ntotal;
char subrou[7];
integer i__1, i__2;
/* Local variables */
- doublereal dfmt;
+ doublereal dfmt = 0.0; // unused
integer ifmt, iver;
char subr[7];
integer ksys , ibyte, irest, ier;
for(Standard_Integer i=1; i<=aNbPnts; i++)
{
const IntSurf_PntOn2S POn2S = theline->Point(i);
- Standard_Real U,V;
+ Standard_Real U = 0.0;
+ Standard_Real V = 0.0;
(POn2S.*pfunc)(U,V);
aUmin = Min(U, aUmin);
aVmin = Min(V, aVmin);
BinObjMgt_RRelocationTable& ) const
{
Handle(TDF_TagSource) aTag = Handle(TDF_TagSource)::DownCast(theTarget);
- Standard_Integer aValue;
+ const Standard_Integer aValue = -1;
Standard_Boolean ok = theSource >> aValue;
if (ok)
aTag->Set(aValue);
}
if(aSize) {
Handle(TColStd_HPackedMapOfInteger) aHMap = new TColStd_HPackedMapOfInteger ();
- Standard_Integer aKey;
+ const Standard_Integer aKey = -1;
for(Standard_Integer i = 0; i< aSize; i++) {
Standard_Boolean ok = Source >> aKey;
if (!ok) {
BinObjMgt_RRelocationTable& theRT) const
{
Handle(TDataStd_Integer) anAtt = Handle(TDataStd_Integer)::DownCast(theTarget);
- Standard_Integer aValue;
+ const Standard_Integer aValue = -1;
Standard_Boolean ok = theSource >> aValue;
if (ok)
anAtt->Set(aValue);
BinObjMgt_RRelocationTable& theRelocTable) const
{
Handle(TDataStd_Real) anAtt= Handle(TDataStd_Real)::DownCast(theTarget);
- Standard_Real aValue;
+ Standard_Real aValue = -1.0;
Standard_Boolean ok = theSource >> aValue;
if (ok)
anAtt->Set(aValue);
Handle(TDataXtd_Geometry) aT =
Handle(TDataXtd_Geometry)::DownCast (theTarget);
- Standard_Integer aType;
+ const Standard_Integer aType = -1;
Standard_Boolean ok = theSource >> aType;
if (ok)
aT->SetType ((TDataXtd_GeometryEnum) aType);
BinObjMgt_RRelocationTable& ) const
{
Handle(TDataXtd_Position) anAtt = Handle(TDataXtd_Position)::DownCast(theTarget);
- Standard_Real aValue;
+ Standard_Real aValue = 0.0;
Standard_Boolean ok = theSource >> aValue;
if (!ok) return ok;
gp_Pnt aPosition(0., 0., 0.);
Handle(TDataXtd_Presentation) anAttribute = Handle(TDataXtd_Presentation)::DownCast(theTarget);
// Display status
- Standard_Integer aValue;
+ const Standard_Integer aValue = -1;
ok = theSource >> aValue;
if (!ok) return ok;
anAttribute->SetDisplayed (aValue != 0);
anAttribute->UnsetMaterial();
// Transparency
- Standard_Real aRValue;
+ Standard_Real aRValue = -1.0;
ok = theSource >> aRValue;
if ( !ok ) return ok;
if ( aRValue != -1. )
Standard_Boolean ok = theSource >> aGUID;
if (ok) {
anAtt->SetDriverGUID(aGUID);
- Standard_Integer aValue;
+ const Standard_Integer aValue = -1;
ok = theSource >> aValue;
if(ok)
anAtt->SetFailure(aValue);
TopoDS_Shape& theResult,
BinTools_ShapeSet* theShapeSet)
{
- Standard_Integer aShapeID, aLocID;
- Standard_Character aCharOrient;
+ const Standard_Integer aShapeID = -1;
+ const Standard_Integer aLocID = -1;
+ const Standard_Character aCharOrient = '0';
Standard_Boolean Ok = theSource >> aShapeID; //TShapeID;
if(!Ok) return 1;
// Read TShape and Orientation
theSource >> aNbShapes;
TDF_Label aLabel = theTarget->Label ();
TNaming_Builder aBuilder (aLabel);
- Standard_Integer aVer;
+ const Standard_Integer aVer = -1;
Standard_Boolean ok = theSource >> aVer;
if(!ok) return Standard_False;
aTAtt->SetVersion(aVer); //Version
- Standard_Character aCharEvol;
+ const Standard_Character aCharEvol = '0';
ok = theSource >> aCharEvol;
if(!ok) return Standard_False;
TNaming_Evolution anEvol = EvolutionToEnum (aCharEvol); //Evolution
TNaming_Name& aName = anAtt->ChangeName();
TCollection_ExtendedString aMsg;
//1. NameType
- Standard_Character aValue;
+ const Standard_Character aValue = '0';
Standard_Boolean ok = theSource >> aValue;
Standard_Boolean aNewF = Standard_False;
if (ok) {
//3. Args
Standard_Integer aNbArgs=0;
- Standard_Integer anIndx;
+ const Standard_Integer anIndx = -1;
Handle(TNaming_NamedShape) aNS;
ok = theSource >> aNbArgs;
if (ok) {
BinObjMgt_RRelocationTable& /*theRelocTable*/) const
{
Handle(XCAFDoc_Centroid) anAtt = Handle(XCAFDoc_Centroid)::DownCast(theTarget);
- Standard_Real x, y, z;
+ Standard_Real x = 0.0;
+ Standard_Real y = 0.0;
+ Standard_Real z = 0.0;
Standard_Boolean isOk = theSource >> x >> y >> z;
if(isOk) {
gp_Pnt aPnt(x, y, z);
BinObjMgt_RRelocationTable& /*theRelocTable*/) const
{
Handle(XCAFDoc_Color) anAtt = Handle(XCAFDoc_Color)::DownCast(theTarget);
- Standard_Real R, G, B;
- Standard_ShortReal alpha;
+ Standard_Real R = 0.0;
+ Standard_Real G = 0.0;
+ Standard_Real B = 0.0;
+ Standard_ShortReal alpha = 1.0;
Standard_Boolean isOk = theSource >> R >> G >> B;
if(isOk) {
Standard_Boolean isRGBA = theSource >> alpha;
Standard_Real LowerValue()
{
Standard_Integer a, aResultIndex = 0;
- Standard_Real aValue;
+ Standard_Real aValue = 0.0;
for(a = myV.Length(); a > 0; a--)
{
if (aResultIndex == 0 || Abs(aValue) > Abs(myV.Value(a)))
}
TopoDS_Face FFv;
Standard_Real tol;
- Standard_Integer prol;
+ Standard_Integer prol = 0;
BRep_Builder BRE;
Handle(Geom_Surface ) Sface;
Sface=BRep_Tool::Surface(Fv);
Standard_Integer Sens = 0;
ChFiDS_ListIteratorOfListOfStripe itel(LS);
Standard_Boolean FF = Standard_True;
- Standard_Boolean isfirst[2];
+ Standard_Boolean isfirst[2] = { Standard_True, Standard_True };
Standard_Integer Iedge[2];
Iedge[0] = 1;
Iedge[1] = 1;
aSegIndices2->Conex2 = cnx2;
aNodIndices3.NdSg = find;
- Standard_Integer iOld,iNew,iTr,skip,ip4,itpk[2];
+ Standard_Integer iOld,iNew,iTr,skip,ip4;
+ Standard_Integer itpk[2] = { -1, -1 };
Standard_Integer n1,n2,n3,nOld[3],nNew[3],New[4];
New[0] = cnx1;
New[2] = myNbTData + 1;
}
// resolve arcs for vertices not having a link to an arc
- Standard_Real utst,vtst;
+ Standard_Real utst = 0.0;
+ Standard_Real vtst = 0.0;
TColStd_Array1OfReal paramsResolved(1,nbvtx);
TColStd_Array1OfTransient arcsResolved(1,nbvtx);
arcsResolved.Init(Handle(Adaptor2d_Curve2d)());
{
Standard_Real xmin, xmax, ymin, ymax, d1, d2, A, B, C;
- Standard_Real par[2];
+ Standard_Real par[2] = { 0.0, 0.0 };
Standard_Integer nbi = 0;
xmin = theS->FirstUParameter();
const TColStd_PackedMapOfInteger& aNodes = GetAllNodes();
if( aNodes.Extent() )
{
- Standard_Real aCoordsBuf[ 3 ];
+ const Standard_Real aCoordsBuf[3] = { 0.0, 0.0, 0.0 };
TColStd_Array1OfReal aCoords (*aCoordsBuf, 1, 3);
Standard_Integer nbNodes;
MeshVS_EntityType aType;
Standard_Boolean HasSelectFlag = ( ( DisplayMode & MeshVS_DMF_SelectionPrs ) != 0 );
Standard_Boolean HasHilightFlag = ( ( DisplayMode & MeshVS_DMF_HilightPrs ) != 0 );
- Standard_Real aCoordsBuf[ 3 ];
+ const Standard_Real aCoordsBuf[3] = { 0.0, 0.0, 0.0 };
TColStd_Array1OfReal aCoords( *aCoordsBuf, 1, 3 );
Standard_Integer NbNodes;
MeshVS_EntityType aType;
&& theExceptionCode != EXCEPTION_NONCONTINUABLE_EXCEPTION)
{
MessageBeep (MB_ICONHAND);
- char aMsgBoxBuffer[2048];
+ char aMsgBoxBuffer[2048] = { '\0' };
strcat_s (aMsgBoxBuffer, sizeof(aMsgBoxBuffer), aBuffer);
if (aStackBuffer != NULL)
{
std::ostringstream aPtrStr;
aPtrStr << thePointer;
+
+ TCollection_AsciiString anInfoPtr(aPtrStr.str().c_str());
+
if (!isShortInfo)
- return aPtrStr.str().c_str();
+ return anInfoPtr;
- TCollection_AsciiString anInfoPtr (aPtrStr.str().c_str());
for (int aSymbolId = 1; aSymbolId < anInfoPtr.Length(); aSymbolId++)
{
if (anInfoPtr.Value(aSymbolId) != '0')
return anInfoPtr;
}
}
- return aPtrStr.str().c_str();
+ return TCollection_AsciiString(aPtrStr.str().c_str());
}
// =======================================================================