diff options
author | QbProg <tholag@gmail.com> | 2011-06-11 16:38:23 +0200 |
---|---|---|
committer | Denis Barbier <bouzim@gmail.com> | 2011-06-13 09:10:43 +0200 |
commit | bf55b6e34dcff2bdae01ee379f733b692db21408 (patch) | |
tree | 8d08655f3ea2307a4d187c510905ecbafabc9c59 | |
parent | 6eb427115fb7cba143632ac99a8bbbea7598fef6 (diff) | |
download | oce-bf55b6e34dcff2bdae01ee379f733b692db21408.tar.gz oce-bf55b6e34dcff2bdae01ee379f733b692db21408.zip |
[warning-fix][uninitialized-var]
Removed unuinitialized vars from TKIGES
-rw-r--r-- | src/IGESAppli/IGESAppli_ToolLineWidening.cxx | 2 | ||||
-rw-r--r-- | src/IGESData/IGESData_ParamReader.cxx | 8 | ||||
-rw-r--r-- | src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx | 2 | ||||
-rw-r--r-- | src/IGESGeom/IGESGeom_ToolConicArc.cxx | 2 | ||||
-rw-r--r-- | src/IGESGeom/IGESGeom_ToolPlane.cxx | 2 | ||||
-rw-r--r-- | src/IGESGraph/IGESGraph_ToolUniformRectGrid.cxx | 4 | ||||
-rw-r--r-- | src/IGESToBRep/IGESToBRep_TopoSurface.cxx | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/src/IGESAppli/IGESAppli_ToolLineWidening.cxx b/src/IGESAppli/IGESAppli_ToolLineWidening.cxx index 8ee87e02..5dfb732b 100644 --- a/src/IGESAppli/IGESAppli_ToolLineWidening.cxx +++ b/src/IGESAppli/IGESAppli_ToolLineWidening.cxx @@ -24,7 +24,7 @@ void IGESAppli_ToolLineWidening::ReadOwnParams Standard_Integer tempCorneringCode; Standard_Integer tempExtensionFlag; Standard_Integer tempJustificationFlag; - Standard_Real tempExtensionValue; + Standard_Real tempExtensionValue = 0.0; //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed //szv#4:S4163:12Mar99 `st=` not needed diff --git a/src/IGESData/IGESData_ParamReader.cxx b/src/IGESData/IGESData_ParamReader.cxx index 7588f8b5..e9a38947 100644 --- a/src/IGESData/IGESData_ParamReader.cxx +++ b/src/IGESData/IGESData_ParamReader.cxx @@ -542,7 +542,7 @@ Standard_Boolean IGESData_ParamReader::ReadXY (const IGESData_ParamCursor& PC,Message_Msg& /*amsg*/, gp_XY& val) { if (!PrepareRead(PC,Standard_False,2)) return Standard_False; - Standard_Real X,Y; + Standard_Real X = 0.0,Y = 0.0; Standard_Boolean stat = (ReadingReal (theindex ,X) && ReadingReal (theindex+1,Y) ); @@ -560,7 +560,7 @@ Standard_Boolean IGESData_ParamReader::ReadXY (const IGESData_ParamCursor& PC, const Standard_CString mess, gp_XY& val) { if (!PrepareRead(PC,mess,Standard_False,2)) return Standard_False; - Standard_Real X,Y; + Standard_Real X = 0.0,Y = 0.0; Standard_Boolean stat = (ReadingReal (theindex ,mess,X) && ReadingReal (theindex+1,mess,Y) ); @@ -580,7 +580,7 @@ Standard_Boolean IGESData_ParamReader::ReadXYZ (const IGESData_ParamCursor& PC,Message_Msg& /*amsg*/, gp_XYZ& val) { if (!PrepareRead(PC,Standard_False,3)) return Standard_False; - Standard_Real X,Y,Z; + Standard_Real X = 0.0,Y = 0.0,Z = 0.0; Standard_Boolean stat = (ReadingReal (theindex ,X) && ReadingReal (theindex+1,Y) && @@ -599,7 +599,7 @@ Standard_Boolean IGESData_ParamReader::ReadXYZ (const IGESData_ParamCursor& PC, const Standard_CString mess, gp_XYZ& val) { if (!PrepareRead(PC,mess,Standard_False,3)) return Standard_False; - Standard_Real X,Y,Z; + Standard_Real X = 0.0,Y = 0.0,Z = 0.0; Standard_Boolean stat = (ReadingReal (theindex ,mess,X) && ReadingReal (theindex+1,mess,Y) && diff --git a/src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx b/src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx index 7d940e7d..dc42f190 100644 --- a/src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx +++ b/src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx @@ -52,7 +52,7 @@ void IGESGeom_ToolBSplineSurface::ReadOwnParams Standard_Integer I, J; Standard_Integer anIndexU, anIndexV, aDegU, aDegV; Standard_Boolean aCloseU, aCloseV, aPolynom, aPeriodU, aPeriodV; - Standard_Real aUmin, aUmax, aVmin, aVmax; + Standard_Real aUmin = 0.0, aUmax = 0.0, aVmin = 0.0, aVmax = 0.0; Standard_Real tempVal; gp_XYZ tempXYZ; Handle(TColStd_HArray1OfReal) allKnotsU; diff --git a/src/IGESGeom/IGESGeom_ToolConicArc.cxx b/src/IGESGeom/IGESGeom_ToolConicArc.cxx index d8af477b..458d1221 100644 --- a/src/IGESGeom/IGESGeom_ToolConicArc.cxx +++ b/src/IGESGeom/IGESGeom_ToolConicArc.cxx @@ -47,7 +47,7 @@ void IGESGeom_ToolConicArc::ReadOwnParams(const Handle(IGESGeom_ConicArc)& ent, //====================================== //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed - Standard_Real A, B, C, D, E, F, ZT; + Standard_Real A = 0.0, B = 0.0, C = 0.0, D = 0.0, E = 0.0, F = 0.0, ZT = 0.0; gp_XY tempStart, tempEnd; /* PR.ReadReal(PR.Current(), Msg81, A); //szv#4:S4163:12Mar99 `st=` not needed diff --git a/src/IGESGeom/IGESGeom_ToolPlane.cxx b/src/IGESGeom/IGESGeom_ToolPlane.cxx index 898dd9ca..94b53f7b 100644 --- a/src/IGESGeom/IGESGeom_ToolPlane.cxx +++ b/src/IGESGeom/IGESGeom_ToolPlane.cxx @@ -42,7 +42,7 @@ void IGESGeom_ToolPlane::ReadOwnParams(const Handle(IGESGeom_Plane)& ent, { // MGE 30/07/98 - Standard_Real A, B, C, D, aSize = 0.; + Standard_Real A = 0.0 , B = 0.0, C = 0.0, D = 0.0, aSize = 0.; Handle(IGESData_IGESEntity) aCurve; gp_XYZ attach (0.,0.,0.); IGESData_Status aStatus; diff --git a/src/IGESGraph/IGESGraph_ToolUniformRectGrid.cxx b/src/IGESGraph/IGESGraph_ToolUniformRectGrid.cxx index 552c8414..fcadb768 100644 --- a/src/IGESGraph/IGESGraph_ToolUniformRectGrid.cxx +++ b/src/IGESGraph/IGESGraph_ToolUniformRectGrid.cxx @@ -28,8 +28,8 @@ void IGESGraph_ToolUniformRectGrid::ReadOwnParams Standard_Integer weighted; gp_XY gridPoint; gp_XY gridSpacing; - Standard_Integer nbPointsX; - Standard_Integer nbPointsY; + Standard_Integer nbPointsX = 0; + Standard_Integer nbPointsY = 0; // Reading nbPropertyValues(Integer) PR.ReadInteger(PR.Current(), "No. of property values", nbPropertyValues); diff --git a/src/IGESToBRep/IGESToBRep_TopoSurface.cxx b/src/IGESToBRep/IGESToBRep_TopoSurface.cxx index 06bd43cf..21f703d5 100644 --- a/src/IGESToBRep/IGESToBRep_TopoSurface.cxx +++ b/src/IGESToBRep/IGESToBRep_TopoSurface.cxx @@ -185,7 +185,7 @@ static Standard_Boolean extractCurve3d (const TopoDS_Shape& theEdges, { TopExp_Explorer anExp(theEdges, TopAbs_EDGE); Standard_Integer howMuch = 0; - Standard_Real f, l; + Standard_Real f = 0.0, l = 0.0; for (; anExp.More(); anExp.Next()) { TopoDS_Edge anEdge = TopoDS::Edge(anExp.Current()); if (anEdge.IsNull()) |