From c24d40175354bbb4f4cbc3bfe9f9471a40675964 Mon Sep 17 00:00:00 2001 From: ski Date: Thu, 14 Nov 2013 11:08:41 +0400 Subject: [PATCH] 0024275: Cppcheck warnings on uninitialized class members Removed warning of cppcheck on uninitialized class members for non-array cases New additional compilation warnings on Windows platform from file OSD_Path.cxx were fixed Warnings about wrong initialization removed --- src/Adaptor3d/Adaptor3d_IsoCurve.cxx | 10 ++++++-- src/Adaptor3d/Adaptor3d_OffsetCurve.cxx | 12 ++++++--- src/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx | 3 ++- src/BRepFeat/BRepFeat_Form.lxx | 15 ++++++++--- src/BRepFeat/BRepFeat_MakeCylindricalHole.lxx | 5 +++- src/BRepGProp/BRepGProp_Face.lxx | 3 ++- src/BRepMesh/BRepMesh_Triangle.cxx | 3 +++ src/Bnd/Bnd_BoundSortBox.cxx | 7 +++++- src/CPnts/CPnts_MyGaussFunction.lxx | 6 ++++- src/CPnts/CPnts_MyRootFunction.lxx | 7 +++++- src/ChFi2d/ChFi2d_ChamferAPI.cxx | 16 ++++++++++-- src/ChFi2d/ChFi2d_FilletAlgo.hxx | 3 ++- src/DDF/DDF_IOStream.cxx | 4 ++- src/Draw/Draw_Interpretor.cxx | 6 ++++- src/Draw/Draw_Viewer.cxx | 23 ++++++++++++++--- src/GCPnts/GCPnts_QuasiUniformAbscissa.cxx | 3 ++- src/GCPnts/GCPnts_UniformAbscissa.cxx | 4 ++- src/GProp/GProp_VGPropsGK.lxx | 3 ++- .../Geom2dToIGES_Geom2dEntity.cxx | 3 ++- src/GeomFill/GeomFill_DiscreteTrihedron.cxx | 3 ++- src/GeomInt/GeomInt_IntSS_1.cxx | 2 +- .../Graphic3d_CGraduatedTrihedron.hxx | 25 ++++++++++++++++++- src/Graphic3d/Graphic3d_CGroup.hxx | 9 ++++--- src/Graphic3d/Graphic3d_CView.hxx | 7 +++++- src/IntCurve/IntCurve_IntConicConic_Tool.cxx | 7 +++++- src/IntTools/IntTools_EdgeEdge_1.cxx | 2 +- src/LDOM/LDOM_XmlReader.cxx | 2 ++ src/LocOpe/LocOpe_Gluer.lxx | 4 +-- src/OSD/OSD_Error.cxx | 7 +++--- src/OSD/OSD_Path.cxx | 10 ++++++-- src/OpenGl/OpenGl_TextFormatter.cxx | 1 + src/PBRep/PBRep_TEdge.cxx | 4 ++- src/PBRep/PBRep_TEdge1.cxx | 4 ++- src/PBRep/PBRep_TFace.cxx | 3 ++- src/PBRep/PBRep_TFace1.cxx | 3 ++- src/PBRep/PBRep_TVertex.cxx | 2 +- src/PBRep/PBRep_TVertex1.cxx | 2 +- src/PCDM/PCDM_ReferenceIterator.cxx | 4 ++- src/PDF/PDF_Data.cxx | 6 ++--- src/PDF/PDF_TagSource.cxx | 2 +- src/PDataStd/PDataStd_BooleanArray.cxx | 4 ++- src/PDataStd/PDataStd_ByteArray_1.cxx | 2 +- src/PDataStd/PDataStd_ExtStringArray_1.cxx | 2 +- src/PDataStd/PDataStd_IntPackedMap_1.cxx | 2 +- src/PDataStd/PDataStd_Integer.cxx | 2 +- src/PDataStd/PDataStd_IntegerArray_1.cxx | 2 +- src/PDataStd/PDataStd_Real.cxx | 3 +-- src/PDataStd/PDataStd_RealArray_1.cxx | 2 +- src/PDataStd/PDataStd_Variable.cxx | 2 +- src/PDataXtd/PDataXtd_Constraint.cxx | 7 +++++- src/PDataXtd/PDataXtd_Geometry.cxx | 2 +- src/PDataXtd/PDataXtd_PatternStd.cxx | 5 +++- src/PNaming/PNaming_Name.cxx | 3 +-- src/PNaming/PNaming_Name_1.cxx | 3 +-- src/PNaming/PNaming_Name_2.cxx | 3 +-- src/PNaming/PNaming_NamedShape.cxx | 5 ++-- src/PPrsStd/PPrsStd_AISPresentation.cxx | 7 +++++- src/PPrsStd/PPrsStd_AISPresentation_1.cxx | 9 +++++-- src/PTopoDS/PTopoDS_HShape.cxx | 2 +- src/PTopoDS/PTopoDS_Shape1.cxx | 6 ++--- src/PTopoDS/PTopoDS_TShape.cxx | 3 +-- src/PXCAFDoc/PXCAFDoc_Area.cxx | 2 +- src/PXCAFDoc/PXCAFDoc_DimTol.cxx | 2 +- src/PXCAFDoc/PXCAFDoc_Material.cxx | 2 +- src/PXCAFDoc/PXCAFDoc_Volume.cxx | 2 +- src/ProjLib/ProjLib_ProjectOnPlane.cxx | 12 +++++++++ src/STEPCAFControl/STEPCAFControl_Reader.cxx | 2 ++ .../Standard_ErrorHandlerCallback.lxx | 3 ++- .../StepVisual_DirectionCountSelect.cxx | 6 ++++- src/TNaming/TNaming_Name.cxx | 4 ++- src/TObj/TObj_Application.cxx | 2 +- src/TestTopOpe/TestTopOpe_MiscBOOP.cxx | 4 ++- src/TestTopOpe/TestTopOpe_VarsTopo.cxx | 2 +- src/TopOpeBRep/TopOpeBRep_LineInter.lxx | 10 +++++--- src/TopOpeBRep/TopOpeBRep_VPointInter.lxx | 2 +- .../TopOpeBRepBuild_FuseFace.lxx | 5 +++- .../TopOpeBRepDS_DataStructure.cxx | 3 ++- src/VrmlData/VrmlData_TextureTransform.hxx | 3 ++- 78 files changed, 285 insertions(+), 102 deletions(-) diff --git a/src/Adaptor3d/Adaptor3d_IsoCurve.cxx b/src/Adaptor3d/Adaptor3d_IsoCurve.cxx index 6dcccd72a4..ddddd954b7 100755 --- a/src/Adaptor3d/Adaptor3d_IsoCurve.cxx +++ b/src/Adaptor3d/Adaptor3d_IsoCurve.cxx @@ -40,7 +40,10 @@ //======================================================================= Adaptor3d_IsoCurve::Adaptor3d_IsoCurve() : - myIso(GeomAbs_NoneIso) + myIso(GeomAbs_NoneIso), + myFirst ( 0. ), + myLast ( 0. ), + myParameter ( 0. ) {} //======================================================================= @@ -48,7 +51,10 @@ Adaptor3d_IsoCurve::Adaptor3d_IsoCurve() : //purpose : //======================================================================= -Adaptor3d_IsoCurve::Adaptor3d_IsoCurve(const Handle(Adaptor3d_HSurface)& S) +Adaptor3d_IsoCurve::Adaptor3d_IsoCurve(const Handle(Adaptor3d_HSurface)& S) : + myFirst ( 0. ), + myLast ( 0. ), + myParameter ( 0. ) { Load(S); } diff --git a/src/Adaptor3d/Adaptor3d_OffsetCurve.cxx b/src/Adaptor3d/Adaptor3d_OffsetCurve.cxx index effd8d4106..38d01906e7 100755 --- a/src/Adaptor3d/Adaptor3d_OffsetCurve.cxx +++ b/src/Adaptor3d/Adaptor3d_OffsetCurve.cxx @@ -33,7 +33,9 @@ //======================================================================= Adaptor3d_OffsetCurve::Adaptor3d_OffsetCurve() : - myOffset( 0.) + myOffset( 0.), + myFirst ( 0.), + myLast ( 0.) {} //======================================================================= @@ -41,7 +43,9 @@ Adaptor3d_OffsetCurve::Adaptor3d_OffsetCurve() : //purpose : //======================================================================= -Adaptor3d_OffsetCurve::Adaptor3d_OffsetCurve(const Handle(Adaptor2d_HCurve2d)& C) +Adaptor3d_OffsetCurve::Adaptor3d_OffsetCurve(const Handle(Adaptor2d_HCurve2d)& C) : + myFirst ( 0.), + myLast ( 0.) { Load(C); } @@ -52,7 +56,9 @@ Adaptor3d_OffsetCurve::Adaptor3d_OffsetCurve(const Handle(Adaptor2d_HCurve2d)& C //======================================================================= Adaptor3d_OffsetCurve::Adaptor3d_OffsetCurve(const Handle(Adaptor2d_HCurve2d)& C, - const Standard_Real Offset) + const Standard_Real Offset) : + myFirst ( 0.), + myLast ( 0.) { Load(C); Load(Offset); diff --git a/src/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx b/src/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx index 63f9aa3b57..e7e25a905d 100755 --- a/src/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx +++ b/src/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx @@ -95,7 +95,8 @@ myMaxDegInU(MaxDegInU), myMaxDegInV(MaxDegInV), myMaxPatches(MaxPatch), myDone(Standard_False), -myHasResult(Standard_False) +myHasResult(Standard_False), +myCriterionError(0.) { myNumSubSpaces[0] = Num1DSS; myNumSubSpaces[1] = Num2DSS; diff --git a/src/BRepFeat/BRepFeat_Form.lxx b/src/BRepFeat/BRepFeat_Form.lxx index 4a04e8d55d..5ab6bc78e9 100755 --- a/src/BRepFeat/BRepFeat_Form.lxx +++ b/src/BRepFeat/BRepFeat_Form.lxx @@ -25,9 +25,18 @@ //purpose : //======================================================================= -inline BRepFeat_Form::BRepFeat_Form () : - mySbOK(Standard_False),myGSOK(Standard_False),mySFOK(Standard_False), - mySUOK(Standard_False),myGFOK(Standard_False) +inline BRepFeat_Form::BRepFeat_Form () : + myFuse(Standard_False), + myModify(Standard_False), + myPerfSelection(BRepFeat_NoSelection), + myJustGluer(Standard_False), + myJustFeat(Standard_False), + mySbOK(Standard_False),mySkOK(Standard_False), + myGSOK(Standard_False),mySFOK(Standard_False), + mySUOK(Standard_False),myGFOK(Standard_False), + myPSOK(Standard_False), + myStatusError(BRepFeat_NotInitialized) + {} //======================================================================= diff --git a/src/BRepFeat/BRepFeat_MakeCylindricalHole.lxx b/src/BRepFeat/BRepFeat_MakeCylindricalHole.lxx index 2bf099a8e9..e64046de11 100755 --- a/src/BRepFeat/BRepFeat_MakeCylindricalHole.lxx +++ b/src/BRepFeat/BRepFeat_MakeCylindricalHole.lxx @@ -27,7 +27,10 @@ //======================================================================= inline BRepFeat_MakeCylindricalHole::BRepFeat_MakeCylindricalHole (): - myAxDef(Standard_False) + myAxDef(Standard_False), + myStatus(BRepFeat_NoError), + myIsBlind(Standard_False), + myValidate(Standard_False) {} //======================================================================= diff --git a/src/BRepGProp/BRepGProp_Face.lxx b/src/BRepGProp/BRepGProp_Face.lxx index 8a1876ea73..f92f7e6965 100755 --- a/src/BRepGProp/BRepGProp_Face.lxx +++ b/src/BRepGProp/BRepGProp_Face.lxx @@ -27,7 +27,8 @@ //======================================================================= inline BRepGProp_Face::BRepGProp_Face(const Standard_Boolean IsUseSpan) - : myIsUseSpan(IsUseSpan) + : mySReverse (Standard_False), + myIsUseSpan(IsUseSpan) { } diff --git a/src/BRepMesh/BRepMesh_Triangle.cxx b/src/BRepMesh/BRepMesh_Triangle.cxx index 6835677e1c..8c89f62335 100755 --- a/src/BRepMesh/BRepMesh_Triangle.cxx +++ b/src/BRepMesh/BRepMesh_Triangle.cxx @@ -28,6 +28,9 @@ BRepMesh_Triangle::BRepMesh_Triangle() : myEdge1(0), myEdge2(0), myEdge3(0), + myOrientation1(Standard_False), + myOrientation2(Standard_False), + myOrientation3(Standard_False), myMovability(BRepMesh_Free) { } diff --git a/src/Bnd/Bnd_BoundSortBox.cxx b/src/Bnd/Bnd_BoundSortBox.cxx index e2b3554f75..72532004d0 100755 --- a/src/Bnd/Bnd_BoundSortBox.cxx +++ b/src/Bnd/Bnd_BoundSortBox.cxx @@ -202,7 +202,12 @@ BSB_T3Bits::~BSB_T3Bits() { if(ToTest) { delete [] ToTest; ToTest=0; } } //======================================================================= -BSB_T3Bits::BSB_T3Bits(int size) { +BSB_T3Bits::BSB_T3Bits(int size) + : ind(0), + Xmin(0),Xmax(0), + Ymin(0),Ymax(0), + Zmin(0),Zmax(0) +{ switch (size) { case 128: { _DECAL=7; _DECAL2=14; _BASE=128; _BASEM1=127; break; } case 64: { _DECAL=6; _DECAL2=12; _BASE= 64; _BASEM1= 63; break; } diff --git a/src/CPnts/CPnts_MyGaussFunction.lxx b/src/CPnts/CPnts_MyGaussFunction.lxx index 86593fd335..430228c16c 100755 --- a/src/CPnts/CPnts_MyGaussFunction.lxx +++ b/src/CPnts/CPnts_MyGaussFunction.lxx @@ -20,4 +20,8 @@ -inline CPnts_MyGaussFunction::CPnts_MyGaussFunction() {} +inline CPnts_MyGaussFunction::CPnts_MyGaussFunction() : + myFunction(NULL), + myData((Standard_Address) NULL) + { + } diff --git a/src/CPnts/CPnts_MyRootFunction.lxx b/src/CPnts/CPnts_MyRootFunction.lxx index d77a002b6a..4338b4ed00 100755 --- a/src/CPnts/CPnts_MyRootFunction.lxx +++ b/src/CPnts/CPnts_MyRootFunction.lxx @@ -19,4 +19,9 @@ // and conditions governing the rights and limitations under the License. -inline CPnts_MyRootFunction::CPnts_MyRootFunction() {} +inline CPnts_MyRootFunction::CPnts_MyRootFunction() : + myX0( 0. ), + myL( 0. ), + myOrder( 0 ), + myTol( 0. ) + {} diff --git a/src/ChFi2d/ChFi2d_ChamferAPI.cxx b/src/ChFi2d/ChFi2d_ChamferAPI.cxx index 38ad217333..0a45263c08 100644 --- a/src/ChFi2d/ChFi2d_ChamferAPI.cxx +++ b/src/ChFi2d/ChFi2d_ChamferAPI.cxx @@ -32,13 +32,25 @@ ChFi2d_ChamferAPI::ChFi2d_ChamferAPI() } // A constructor accepting a wire consisting of two linear edges. -ChFi2d_ChamferAPI::ChFi2d_ChamferAPI(const TopoDS_Wire& theWire) +ChFi2d_ChamferAPI::ChFi2d_ChamferAPI(const TopoDS_Wire& theWire) : + myStart1(0.), + myEnd1(0.), + myStart2(0.), + myEnd2(0.), + myCommonStart1(Standard_False), + myCommonStart2(Standard_False) { Init(theWire); } // A constructor accepting two linear edges. -ChFi2d_ChamferAPI::ChFi2d_ChamferAPI(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2) +ChFi2d_ChamferAPI::ChFi2d_ChamferAPI(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2) : + myStart1(0.), + myEnd1(0.), + myStart2(0.), + myEnd2(0.), + myCommonStart1(Standard_False), + myCommonStart2(Standard_False) { Init(theEdge1, theEdge2); } diff --git a/src/ChFi2d/ChFi2d_FilletAlgo.hxx b/src/ChFi2d/ChFi2d_FilletAlgo.hxx index 64f9a6da22..3fed85f5a7 100644 --- a/src/ChFi2d/ChFi2d_FilletAlgo.hxx +++ b/src/ChFi2d/ChFi2d_FilletAlgo.hxx @@ -149,7 +149,8 @@ class FilletPoint { public: //! Creates a point on a first curve by parameter on this curve. - FilletPoint(Standard_Real theParam) {myParam = theParam;} + FilletPoint(Standard_Real theParam) : myParam2(0.) + {myParam = theParam;} //! Changes the point position by changing point parameter on the first curve. void setParam(Standard_Real theParam) {myParam = theParam;} diff --git a/src/DDF/DDF_IOStream.cxx b/src/DDF/DDF_IOStream.cxx index 50d8285461..b30ed49345 100755 --- a/src/DDF/DDF_IOStream.cxx +++ b/src/DDF/DDF_IOStream.cxx @@ -53,7 +53,9 @@ const Standard_CString MAGICNUMBER = "FSDFILE"; //purpose : //======================================================================= -DDF_IOStream::DDF_IOStream() +DDF_IOStream::DDF_IOStream() : + myIStream(NULL), + myOStream(NULL) {} //======================================================================= diff --git a/src/Draw/Draw_Interpretor.cxx b/src/Draw/Draw_Interpretor.cxx index 540985205f..2a258a268d 100755 --- a/src/Draw/Draw_Interpretor.cxx +++ b/src/Draw/Draw_Interpretor.cxx @@ -82,7 +82,11 @@ class TclUTFToLocalStringSentry { delete[] TclArgv; } #else - TclUTFToLocalStringSentry (int, const char **argv) : Argv((char**)argv) {} + TclUTFToLocalStringSentry (int, const char **argv) : + nb(0), + TclArgv(NULL), + Argv((char**)argv) + {} #endif const char **GetArgv () const { return (const char **)Argv; } diff --git a/src/Draw/Draw_Viewer.cxx b/src/Draw/Draw_Viewer.cxx index 7792e61257..adbb8d3eb3 100755 --- a/src/Draw/Draw_Viewer.cxx +++ b/src/Draw/Draw_Viewer.cxx @@ -142,7 +142,15 @@ Draw_View::Draw_View(Standard_Integer i, Draw_Viewer* v, Standard_Integer Y, Standard_Integer W, Standard_Integer H) : - Draw_Window("Win", X, Y, W, H), id(i), viewer(v) + Draw_Window("Win", X, Y, W, H), + id(i), + viewer(v), + FlagPers(0), + Flag2d(0), + FocalDist(0.), + Zoom(0.), + dX(0),dY(0), + lastX(0),lastY(0) { Framex0=Framey0=Framex1=Framey1=0; } @@ -169,9 +177,16 @@ Draw_View::Draw_View(Standard_Integer i, Draw_Viewer* v, Standard_Integer W, Standard_Integer H, NSWindow* theWindow) : -Draw_Window(theWindow, "Win", X, Y, W, H), id(i), viewer(v) + Draw_Window(theWindow, "Win", X, Y, W, H), id(i), viewer(v), + FlagPers(0), + Flag2d(0), + FocalDist(0.), + Zoom(0.), + dX(0),dY(0), + lastX(0),lastY(0), + Framex0(0),Framey0(0), + Framex1(0),Framey1(0) { - Framex0=Framey0=Framex1=Framey1=0; } #endif @@ -180,7 +195,7 @@ Draw_Window(theWindow, "Win", X, Y, W, H), id(i), viewer(v) //purpose : //======================================================================= #if defined(_WIN32) || defined (__WIN32__) || (defined(__APPLE__) && !defined(MACOSX_USE_GLX)) -Draw_View::Draw_View(Standard_Integer /*i*/, Draw_Viewer* /*v*/, const char* /*w*/) + Draw_View::Draw_View(Standard_Integer /*i*/, Draw_Viewer* /*v*/, const char* /*w*/) : viewer( NULL ) #else Draw_View::Draw_View(Standard_Integer i, Draw_Viewer* v, const char* w) : Draw_Window(w), id(i), viewer(v) diff --git a/src/GCPnts/GCPnts_QuasiUniformAbscissa.cxx b/src/GCPnts/GCPnts_QuasiUniformAbscissa.cxx index 999c9b27aa..9d33dcfd9c 100755 --- a/src/GCPnts/GCPnts_QuasiUniformAbscissa.cxx +++ b/src/GCPnts/GCPnts_QuasiUniformAbscissa.cxx @@ -43,7 +43,8 @@ //======================================================================= GCPnts_QuasiUniformAbscissa::GCPnts_QuasiUniformAbscissa () - :myDone(Standard_False) + :myDone(Standard_False), + myNbPoints(0) { } diff --git a/src/GCPnts/GCPnts_UniformAbscissa.cxx b/src/GCPnts/GCPnts_UniformAbscissa.cxx index 5a54be27e8..9996e74887 100755 --- a/src/GCPnts/GCPnts_UniformAbscissa.cxx +++ b/src/GCPnts/GCPnts_UniformAbscissa.cxx @@ -30,7 +30,9 @@ //======================================================================= GCPnts_UniformAbscissa::GCPnts_UniformAbscissa () - :myDone(Standard_False) + :myDone(Standard_False), + myNbPoints(0), + myAbscissa(0.) { } diff --git a/src/GProp/GProp_VGPropsGK.lxx b/src/GProp/GProp_VGPropsGK.lxx index e51b2482a4..98ceec4148 100755 --- a/src/GProp/GProp_VGPropsGK.lxx +++ b/src/GProp/GProp_VGPropsGK.lxx @@ -25,7 +25,8 @@ //========================================================================== inline GProp_VGPropsGK::GProp_VGPropsGK() - : myErrorReached(0.) + : myErrorReached(0.), + myAbsolutError(0.) { } diff --git a/src/Geom2dToIGES/Geom2dToIGES_Geom2dEntity.cxx b/src/Geom2dToIGES/Geom2dToIGES_Geom2dEntity.cxx index 50c92d616b..ebc93ca652 100755 --- a/src/Geom2dToIGES/Geom2dToIGES_Geom2dEntity.cxx +++ b/src/Geom2dToIGES/Geom2dToIGES_Geom2dEntity.cxx @@ -35,7 +35,8 @@ //purpose : //======================================================================= -Geom2dToIGES_Geom2dEntity::Geom2dToIGES_Geom2dEntity() +Geom2dToIGES_Geom2dEntity::Geom2dToIGES_Geom2dEntity() : + TheUnitFactor(0.) { } diff --git a/src/GeomFill/GeomFill_DiscreteTrihedron.cxx b/src/GeomFill/GeomFill_DiscreteTrihedron.cxx index c7d48ff2c6..29d29d3bb2 100644 --- a/src/GeomFill/GeomFill_DiscreteTrihedron.cxx +++ b/src/GeomFill/GeomFill_DiscreteTrihedron.cxx @@ -35,7 +35,8 @@ static const Standard_Real TolConf = Precision::Confusion(); //purpose : Constructor //======================================================================= -GeomFill_DiscreteTrihedron::GeomFill_DiscreteTrihedron() +GeomFill_DiscreteTrihedron::GeomFill_DiscreteTrihedron() : + myUseFrenet(Standard_False) { myFrenet = new GeomFill_Frenet(); myKnots = new TColStd_HSequenceOfReal(); diff --git a/src/GeomInt/GeomInt_IntSS_1.cxx b/src/GeomInt/GeomInt_IntSS_1.cxx index f9af783a78..b847bfb32d 100755 --- a/src/GeomInt/GeomInt_IntSS_1.cxx +++ b/src/GeomInt/GeomInt_IntSS_1.cxx @@ -153,7 +153,7 @@ static class ProjectPointOnSurf { public: - ProjectPointOnSurf() : myIsDone (Standard_False) {} + ProjectPointOnSurf() : myIsDone (Standard_False),myIndex(0) {} void Init(const Handle(Geom_Surface)& Surface, const Standard_Real Umin, const Standard_Real Usup, diff --git a/src/Graphic3d/Graphic3d_CGraduatedTrihedron.hxx b/src/Graphic3d/Graphic3d_CGraduatedTrihedron.hxx index e34df4a5fc..e0f0576cbe 100644 --- a/src/Graphic3d/Graphic3d_CGraduatedTrihedron.hxx +++ b/src/Graphic3d/Graphic3d_CGraduatedTrihedron.hxx @@ -34,7 +34,30 @@ class Graphic3d_CGraduatedTrihedron { public: /* Default constructor. Nullifies the view pointer */ - Graphic3d_CGraduatedTrihedron () : ptrVisual3dView(NULL) {} + Graphic3d_CGraduatedTrihedron () : xdrawname ( Standard_False ), + ydrawname ( Standard_False ), + zdrawname ( Standard_False ), + xdrawvalues ( Standard_False ), + ydrawvalues ( Standard_False ), + zdrawvalues ( Standard_False ), + drawgrid ( Standard_False ), + drawaxes ( Standard_False ), + nbx ( 0 ),nby ( 0 ),nbz ( 0 ), + xoffset ( 0 ),yoffset ( 0 ),zoffset ( 0 ), + xaxisoffset ( 0 ),yaxisoffset ( 0 ),zaxisoffset ( 0 ), + xdrawtickmarks ( Standard_False ), + ydrawtickmarks ( Standard_False ), + zdrawtickmarks ( Standard_False ), + xtickmarklength ( 0 ), ytickmarklength ( 0 ), ztickmarklength ( 0 ), + styleOfNames ( Font_FA_Undefined ), + sizeOfNames ( 0 ), + styleOfValues ( Font_FA_Undefined ), + sizeOfValues ( 0 ), + cbCubicAxes ( NULL ), + ptrVisual3dView(NULL) + { + // + } /* Names of axes */ TCollection_ExtendedString xname, yname, zname; diff --git a/src/Graphic3d/Graphic3d_CGroup.hxx b/src/Graphic3d/Graphic3d_CGroup.hxx index c9619927b2..590ae8141e 100755 --- a/src/Graphic3d/Graphic3d_CGroup.hxx +++ b/src/Graphic3d/Graphic3d_CGroup.hxx @@ -46,7 +46,11 @@ public: PolygonOffsetFactor (0.0f), PolygonOffsetUnits (0.0f) { - // + memset(&IntColor,0,sizeof(IntColor)); + memset(&BackIntColor,0,sizeof(BackIntColor)); + memset(&EdgeColor,0,sizeof(EdgeColor)); + memset(&Front,0,sizeof(Front)); + memset(&Back,0,sizeof(Back)); } public: @@ -82,7 +86,6 @@ public: float PolygonOffsetUnits; Handle(Graphic3d_ShaderProgram) ShaderProgram; - }; class CALL_DEF_CONTEXTMARKER @@ -96,7 +99,7 @@ public: Scale (0), MarkerImage (NULL) { - // + memset(&Color,0,sizeof(Color)); } public: diff --git a/src/Graphic3d/Graphic3d_CView.hxx b/src/Graphic3d/Graphic3d_CView.hxx index 33d0040b28..dbc739a196 100755 --- a/src/Graphic3d/Graphic3d_CView.hxx +++ b/src/Graphic3d/Graphic3d_CView.hxx @@ -92,6 +92,7 @@ public: ptrUnderLayer (NULL), ptrOverLayer (NULL), Backfacing (0), + GContext (NULL), GDisplayCB (NULL), GClientData (NULL), ptrFBO (NULL), @@ -101,7 +102,11 @@ public: IsReflectionsEnabled (1), IsAntialiasingEnabled (0) { - // + memset(&Orientation,0,sizeof(Orientation)); + memset(&Mapping,0,sizeof(Mapping)); + memset(&OrientationReset,0,sizeof(OrientationReset)); + memset(&MappingReset,0,sizeof(MappingReset)); + memset(&DefWindow,0,sizeof(DefWindow)); } public: diff --git a/src/IntCurve/IntCurve_IntConicConic_Tool.cxx b/src/IntCurve/IntCurve_IntConicConic_Tool.cxx index 71dbf8b3b6..0bd5035fd5 100755 --- a/src/IntCurve/IntCurve_IntConicConic_Tool.cxx +++ b/src/IntCurve/IntCurve_IntConicConic_Tool.cxx @@ -154,7 +154,12 @@ PeriodicInterval PeriodicInterval::SecondIntersection(PeriodicInterval& PInter) return(PeriodicInterval(a,b)); } //---------------------------------------------------------------------- -Interval::Interval() { IsNull=Standard_True; } +Interval::Interval() : + Binf(0.), + Bsup(0.), + HasFirstBound(Standard_False), + HasLastBound(Standard_False) +{ IsNull=Standard_True; } Interval::Interval(const Standard_Real a,const Standard_Real b) { HasFirstBound=HasLastBound=Standard_True; diff --git a/src/IntTools/IntTools_EdgeEdge_1.cxx b/src/IntTools/IntTools_EdgeEdge_1.cxx index 77aa02dcb5..7f17624be5 100644 --- a/src/IntTools/IntTools_EdgeEdge_1.cxx +++ b/src/IntTools/IntTools_EdgeEdge_1.cxx @@ -560,7 +560,7 @@ class IntTools_DistCC { myT11=0.; myT12=0.; myT21=0.; - myT21=0.; + myT22=0.; myErrorStatus=1; myThreshold=1.e-7; myDx=0.; diff --git a/src/LDOM/LDOM_XmlReader.cxx b/src/LDOM/LDOM_XmlReader.cxx index fc1bdf72c2..c28605f913 100755 --- a/src/LDOM/LDOM_XmlReader.cxx +++ b/src/LDOM/LDOM_XmlReader.cxx @@ -79,6 +79,7 @@ LDOM_XmlReader::LDOM_XmlReader (const int aFileDes, #endif myError (anErrorString), myDocument (aDocument), + myElement (NULL), myPtr (&myBuffer[0]), myEndPtr (&myBuffer[0]) {} @@ -96,6 +97,7 @@ LDOM_XmlReader::LDOM_XmlReader (istream& anInput, myIStream (anInput), myError (anErrorString), myDocument (aDocument), + myElement (NULL), myPtr (&myBuffer[0]), myEndPtr (&myBuffer[0]) {} diff --git a/src/LocOpe/LocOpe_Gluer.lxx b/src/LocOpe/LocOpe_Gluer.lxx index 2ab254e9b1..70cf2a3eef 100755 --- a/src/LocOpe/LocOpe_Gluer.lxx +++ b/src/LocOpe/LocOpe_Gluer.lxx @@ -29,7 +29,7 @@ //======================================================================= inline LocOpe_Gluer::LocOpe_Gluer () : - myDone(Standard_False),myOri(TopAbs_INTERNAL) + myDone(Standard_False),myOri(TopAbs_INTERNAL),myOpe(LocOpe_INVALID) {} @@ -40,7 +40,7 @@ inline LocOpe_Gluer::LocOpe_Gluer () : inline LocOpe_Gluer::LocOpe_Gluer (const TopoDS_Shape& Sbase, const TopoDS_Shape& Snew) : - myDone(Standard_False),mySb(Sbase),mySn(Snew),myOri(TopAbs_INTERNAL) + myDone(Standard_False),mySb(Sbase),mySn(Snew),myOri(TopAbs_INTERNAL),myOpe(LocOpe_INVALID) {} diff --git a/src/OSD/OSD_Error.cxx b/src/OSD/OSD_Error.cxx index 54ba6f50d1..8a7f006d7e 100755 --- a/src/OSD/OSD_Error.cxx +++ b/src/OSD/OSD_Error.cxx @@ -624,10 +624,11 @@ static ERROR_TABLE fileNodeErrorTable[] = { static Standard_Integer _get_comm_error ( DWORD ); -OSD_Error :: OSD_Error () { - +OSD_Error :: OSD_Error () : + myCode((OSD_WhoAmI)0), + extCode(0) +{ Reset (); - } // end constructor ( 1 ) void OSD_Error :: Perror () { diff --git a/src/OSD/OSD_Path.cxx b/src/OSD/OSD_Path.cxx index c1be338ab9..c991034c53 100755 --- a/src/OSD/OSD_Path.cxx +++ b/src/OSD/OSD_Path.cxx @@ -1042,7 +1042,10 @@ OSD_Path :: OSD_Path () { OSD_Path :: OSD_Path ( const TCollection_AsciiString& aDependentName, const OSD_SysType aSysType - ) { + ) : + myUNCFlag(Standard_False), + SysDep(OSD_WindowsNT) +{ Standard_Integer i, j, len; static char __drive [ _MAX_DRIVE ]; @@ -1106,7 +1109,10 @@ OSD_Path :: OSD_Path ( const TCollection_AsciiString& aTrek, const TCollection_AsciiString& aName, const TCollection_AsciiString& anExtension - ) { + ) : + myUNCFlag(Standard_False), + SysDep(OSD_WindowsNT) +{ SetValues ( aNode, aUsername, aPassword, aDisk, aTrek, aName, anExtension ); diff --git a/src/OpenGl/OpenGl_TextFormatter.cxx b/src/OpenGl/OpenGl_TextFormatter.cxx index 82a295bae5..042f9372af 100644 --- a/src/OpenGl/OpenGl_TextFormatter.cxx +++ b/src/OpenGl/OpenGl_TextFormatter.cxx @@ -110,6 +110,7 @@ OpenGl_TextFormatter::OpenGl_TextFormatter() myLinesNb (0), myRectLineStart (0), myRectWordStart (0), + myNewLineNb(0), myPenCurrLine (0.0f), myLineLeft (0.0f), myLineTail (0.0f), diff --git a/src/PBRep/PBRep_TEdge.cxx b/src/PBRep/PBRep_TEdge.cxx index bca03a0310..87d54f9af1 100755 --- a/src/PBRep/PBRep_TEdge.cxx +++ b/src/PBRep/PBRep_TEdge.cxx @@ -31,7 +31,9 @@ static const Standard_Integer DegeneratedMask = 4; //purpose : //======================================================================= -PBRep_TEdge::PBRep_TEdge() +PBRep_TEdge::PBRep_TEdge() : + myTolerance(0.), + myFlags(0) { } diff --git a/src/PBRep/PBRep_TEdge1.cxx b/src/PBRep/PBRep_TEdge1.cxx index b6dc23cc71..eee2922d00 100755 --- a/src/PBRep/PBRep_TEdge1.cxx +++ b/src/PBRep/PBRep_TEdge1.cxx @@ -34,7 +34,9 @@ enum { //purpose : //======================================================================= -PBRep_TEdge1::PBRep_TEdge1() +PBRep_TEdge1::PBRep_TEdge1() : + myTolerance(0.), + myFlags(0) { } diff --git a/src/PBRep/PBRep_TFace.cxx b/src/PBRep/PBRep_TFace.cxx index 134061bf03..b350ca7075 100755 --- a/src/PBRep/PBRep_TFace.cxx +++ b/src/PBRep/PBRep_TFace.cxx @@ -29,7 +29,8 @@ //======================================================================= PBRep_TFace::PBRep_TFace() : - myNaturalRestriction(Standard_False) + myTolerance(0.), + myNaturalRestriction(Standard_False) { } diff --git a/src/PBRep/PBRep_TFace1.cxx b/src/PBRep/PBRep_TFace1.cxx index 4c0747117a..5e2da114a8 100755 --- a/src/PBRep/PBRep_TFace1.cxx +++ b/src/PBRep/PBRep_TFace1.cxx @@ -29,7 +29,8 @@ //======================================================================= PBRep_TFace1::PBRep_TFace1() : - myNaturalRestriction(Standard_False) + myTolerance(0.), + myNaturalRestriction(Standard_False) { } diff --git a/src/PBRep/PBRep_TVertex.cxx b/src/PBRep/PBRep_TVertex.cxx index 111f46d76b..314ca9b259 100755 --- a/src/PBRep/PBRep_TVertex.cxx +++ b/src/PBRep/PBRep_TVertex.cxx @@ -28,7 +28,7 @@ //purpose : //======================================================================= -PBRep_TVertex::PBRep_TVertex() +PBRep_TVertex::PBRep_TVertex() : myTolerance(0.) { } diff --git a/src/PBRep/PBRep_TVertex1.cxx b/src/PBRep/PBRep_TVertex1.cxx index 1d8ebd3646..15868ce354 100755 --- a/src/PBRep/PBRep_TVertex1.cxx +++ b/src/PBRep/PBRep_TVertex1.cxx @@ -28,7 +28,7 @@ //purpose : //======================================================================= -PBRep_TVertex1::PBRep_TVertex1() +PBRep_TVertex1::PBRep_TVertex1() : myTolerance(0.) { } diff --git a/src/PCDM/PCDM_ReferenceIterator.cxx b/src/PCDM/PCDM_ReferenceIterator.cxx index d39f71c344..1f928d921c 100755 --- a/src/PCDM/PCDM_ReferenceIterator.cxx +++ b/src/PCDM/PCDM_ReferenceIterator.cxx @@ -36,7 +36,9 @@ //purpose : //======================================================================= -PCDM_ReferenceIterator::PCDM_ReferenceIterator (const Handle(CDM_MessageDriver)& theMsgDriver) { +PCDM_ReferenceIterator::PCDM_ReferenceIterator (const Handle(CDM_MessageDriver)& theMsgDriver) : + myIterator(0) +{ myMessageDriver = theMsgDriver; } diff --git a/src/PDF/PDF_Data.cxx b/src/PDF/PDF_Data.cxx index e13e70ac32..ffc8d44cf0 100755 --- a/src/PDF/PDF_Data.cxx +++ b/src/PDF/PDF_Data.cxx @@ -33,9 +33,9 @@ //purpose : //======================================================================= -PDF_Data::PDF_Data() : -myVersion(0) -{} +PDF_Data::PDF_Data() : myVersion(0) +{ +} //======================================================================= //function : PDF_Data diff --git a/src/PDF/PDF_TagSource.cxx b/src/PDF/PDF_TagSource.cxx index 3b61016b30..08fadd544f 100755 --- a/src/PDF/PDF_TagSource.cxx +++ b/src/PDF/PDF_TagSource.cxx @@ -17,7 +17,7 @@ #include -PDF_TagSource::PDF_TagSource() { } +PDF_TagSource::PDF_TagSource() : myValue (0) { } PDF_TagSource::PDF_TagSource(const Standard_Integer V) : myValue (V) {} diff --git a/src/PDataStd/PDataStd_BooleanArray.cxx b/src/PDataStd/PDataStd_BooleanArray.cxx index 10e0844058..1775ff7bd9 100755 --- a/src/PDataStd/PDataStd_BooleanArray.cxx +++ b/src/PDataStd/PDataStd_BooleanArray.cxx @@ -24,7 +24,9 @@ //function : PDataStd_BooleanArray //purpose : //======================================================================= -PDataStd_BooleanArray::PDataStd_BooleanArray() +PDataStd_BooleanArray::PDataStd_BooleanArray() : + myLower(0), + myUpper(0) { } diff --git a/src/PDataStd/PDataStd_ByteArray_1.cxx b/src/PDataStd/PDataStd_ByteArray_1.cxx index 03bf28d4e8..08213cd98a 100755 --- a/src/PDataStd/PDataStd_ByteArray_1.cxx +++ b/src/PDataStd/PDataStd_ByteArray_1.cxx @@ -24,7 +24,7 @@ //function : PDataStd_ByteArray_1 //purpose : //======================================================================= -PDataStd_ByteArray_1::PDataStd_ByteArray_1() {} +PDataStd_ByteArray_1::PDataStd_ByteArray_1() : myDelta(Standard_False) {} //======================================================================= //function : Set diff --git a/src/PDataStd/PDataStd_ExtStringArray_1.cxx b/src/PDataStd/PDataStd_ExtStringArray_1.cxx index 1b0831de67..d9cd5ee6c7 100755 --- a/src/PDataStd/PDataStd_ExtStringArray_1.cxx +++ b/src/PDataStd/PDataStd_ExtStringArray_1.cxx @@ -26,7 +26,7 @@ //purpose : //======================================================================= -PDataStd_ExtStringArray_1::PDataStd_ExtStringArray_1 () { } +PDataStd_ExtStringArray_1::PDataStd_ExtStringArray_1 () : myDelta(Standard_False) { } //======================================================================= //function : Init diff --git a/src/PDataStd/PDataStd_IntPackedMap_1.cxx b/src/PDataStd/PDataStd_IntPackedMap_1.cxx index 40af4a90dd..98d3da66ec 100755 --- a/src/PDataStd/PDataStd_IntPackedMap_1.cxx +++ b/src/PDataStd/PDataStd_IntPackedMap_1.cxx @@ -26,7 +26,7 @@ //function : PDataStd_IntPackedMap_1 //purpose : Constructor //======================================================================= -PDataStd_IntPackedMap_1::PDataStd_IntPackedMap_1() {} +PDataStd_IntPackedMap_1::PDataStd_IntPackedMap_1() : myDelta(Standard_False) {} //======================================================================= //function : Init diff --git a/src/PDataStd/PDataStd_Integer.cxx b/src/PDataStd/PDataStd_Integer.cxx index e95a30fd8b..7074172843 100755 --- a/src/PDataStd/PDataStd_Integer.cxx +++ b/src/PDataStd/PDataStd_Integer.cxx @@ -28,7 +28,7 @@ //purpose : //======================================================================= -PDataStd_Integer::PDataStd_Integer () {} +PDataStd_Integer::PDataStd_Integer () : myValue(0) {} //======================================================================= diff --git a/src/PDataStd/PDataStd_IntegerArray_1.cxx b/src/PDataStd/PDataStd_IntegerArray_1.cxx index 0fe505650f..0f1f6d7777 100755 --- a/src/PDataStd/PDataStd_IntegerArray_1.cxx +++ b/src/PDataStd/PDataStd_IntegerArray_1.cxx @@ -25,7 +25,7 @@ //purpose : //======================================================================= -PDataStd_IntegerArray_1::PDataStd_IntegerArray_1 () { } +PDataStd_IntegerArray_1::PDataStd_IntegerArray_1 () : myDelta(Standard_False) { } //======================================================================= //function : Init diff --git a/src/PDataStd/PDataStd_Real.cxx b/src/PDataStd/PDataStd_Real.cxx index 3198fd863e..5ecddd50c3 100755 --- a/src/PDataStd/PDataStd_Real.cxx +++ b/src/PDataStd/PDataStd_Real.cxx @@ -27,8 +27,7 @@ //purpose : //======================================================================= -PDataStd_Real::PDataStd_Real () { } - +PDataStd_Real::PDataStd_Real () : myValue(0.),myDimension(0) { } //======================================================================= diff --git a/src/PDataStd/PDataStd_RealArray_1.cxx b/src/PDataStd/PDataStd_RealArray_1.cxx index dc551773f2..0704956452 100755 --- a/src/PDataStd/PDataStd_RealArray_1.cxx +++ b/src/PDataStd/PDataStd_RealArray_1.cxx @@ -25,7 +25,7 @@ //purpose : //======================================================================= -PDataStd_RealArray_1::PDataStd_RealArray_1 () { } +PDataStd_RealArray_1::PDataStd_RealArray_1 () : myDelta(Standard_False) { } //======================================================================= //function : Init diff --git a/src/PDataStd/PDataStd_Variable.cxx b/src/PDataStd/PDataStd_Variable.cxx index baa78a39c0..505ebd0cc3 100755 --- a/src/PDataStd/PDataStd_Variable.cxx +++ b/src/PDataStd/PDataStd_Variable.cxx @@ -26,7 +26,7 @@ //purpose : //======================================================================= -PDataStd_Variable::PDataStd_Variable() +PDataStd_Variable::PDataStd_Variable() : isConstant(Standard_False) { } diff --git a/src/PDataXtd/PDataXtd_Constraint.cxx b/src/PDataXtd/PDataXtd_Constraint.cxx index f2756cf1ca..0a4c3ba469 100755 --- a/src/PDataXtd/PDataXtd_Constraint.cxx +++ b/src/PDataXtd/PDataXtd_Constraint.cxx @@ -19,7 +19,12 @@ -PDataXtd_Constraint::PDataXtd_Constraint () { } +PDataXtd_Constraint::PDataXtd_Constraint () : + myType(0), + myIsReversed(Standard_False), + myIsInverted(Standard_False), + myIsVerified(Standard_False) +{ } PDataXtd_Constraint::PDataXtd_Constraint(const Standard_Integer Type, const Handle(PDF_HAttributeArray1)& Geometries, diff --git a/src/PDataXtd/PDataXtd_Geometry.cxx b/src/PDataXtd/PDataXtd_Geometry.cxx index 602d3c7c57..2fd6db8356 100755 --- a/src/PDataXtd/PDataXtd_Geometry.cxx +++ b/src/PDataXtd/PDataXtd_Geometry.cxx @@ -22,7 +22,7 @@ #include -PDataXtd_Geometry::PDataXtd_Geometry () { } +PDataXtd_Geometry::PDataXtd_Geometry () : myType(0) { } PDataXtd_Geometry::PDataXtd_Geometry (const Standard_Integer Type) : myType (Type) {} diff --git a/src/PDataXtd/PDataXtd_PatternStd.cxx b/src/PDataXtd/PDataXtd_PatternStd.cxx index 680fe5e3fd..50b93d9232 100755 --- a/src/PDataXtd/PDataXtd_PatternStd.cxx +++ b/src/PDataXtd/PDataXtd_PatternStd.cxx @@ -22,6 +22,9 @@ #include -PDataXtd_PatternStd::PDataXtd_PatternStd() +PDataXtd_PatternStd::PDataXtd_PatternStd() : + mySignature(0), + myAxis1Reversed(Standard_False), + myAxis2Reversed(Standard_False) { } diff --git a/src/PNaming/PNaming_Name.cxx b/src/PNaming/PNaming_Name.cxx index 515e76dc56..1e14534196 100755 --- a/src/PNaming/PNaming_Name.cxx +++ b/src/PNaming/PNaming_Name.cxx @@ -28,7 +28,6 @@ //purpose : //======================================================================= -PNaming_Name::PNaming_Name() -:myType(0),myShapeType(0),myIndex(0) +PNaming_Name::PNaming_Name() : myType(0), myShapeType(0), myIndex(0) { } diff --git a/src/PNaming/PNaming_Name_1.cxx b/src/PNaming/PNaming_Name_1.cxx index f92bd46522..06aaeb075d 100755 --- a/src/PNaming/PNaming_Name_1.cxx +++ b/src/PNaming/PNaming_Name_1.cxx @@ -26,7 +26,6 @@ //purpose : //======================================================================= -PNaming_Name_1::PNaming_Name_1() -:myType(0),myShapeType(0),myIndex(0) +PNaming_Name_1::PNaming_Name_1() : myType(0), myShapeType(0), myIndex(0) { } diff --git a/src/PNaming/PNaming_Name_2.cxx b/src/PNaming/PNaming_Name_2.cxx index 310f0af892..70d4ac2515 100644 --- a/src/PNaming/PNaming_Name_2.cxx +++ b/src/PNaming/PNaming_Name_2.cxx @@ -26,7 +26,6 @@ //purpose : //======================================================================= -PNaming_Name_2::PNaming_Name_2() -:myType(0),myShapeType(0),myIndex(0), myOrientation(0) +PNaming_Name_2::PNaming_Name_2() : myType(0), myShapeType(0), myIndex(0), myOrientation(0) { } diff --git a/src/PNaming/PNaming_NamedShape.cxx b/src/PNaming/PNaming_NamedShape.cxx index fdd0439f0c..6d5461e747 100755 --- a/src/PNaming/PNaming_NamedShape.cxx +++ b/src/PNaming/PNaming_NamedShape.cxx @@ -27,8 +27,9 @@ //purpose : //======================================================================= -PNaming_NamedShape::PNaming_NamedShape() -:myShapeStatus(0),myVersion(0) +PNaming_NamedShape::PNaming_NamedShape() : + myShapeStatus(0), + myVersion(0) { } diff --git a/src/PPrsStd/PPrsStd_AISPresentation.cxx b/src/PPrsStd/PPrsStd_AISPresentation.cxx index 4f48b478e2..f1bd87a945 100755 --- a/src/PPrsStd/PPrsStd_AISPresentation.cxx +++ b/src/PPrsStd/PPrsStd_AISPresentation.cxx @@ -28,7 +28,12 @@ //purpose : //======================================================================= -PPrsStd_AISPresentation::PPrsStd_AISPresentation() +PPrsStd_AISPresentation::PPrsStd_AISPresentation() : + myIsDisplayed(Standard_False), + myTransparency(0.), + myColor(0), + myMaterial(0), + myWidth(0.) {} diff --git a/src/PPrsStd/PPrsStd_AISPresentation_1.cxx b/src/PPrsStd/PPrsStd_AISPresentation_1.cxx index e010c8d485..6fde3f2f35 100755 --- a/src/PPrsStd/PPrsStd_AISPresentation_1.cxx +++ b/src/PPrsStd/PPrsStd_AISPresentation_1.cxx @@ -26,9 +26,14 @@ //purpose : //======================================================================= -PPrsStd_AISPresentation_1::PPrsStd_AISPresentation_1() +PPrsStd_AISPresentation_1::PPrsStd_AISPresentation_1() : + myIsDisplayed(Standard_False), + myTransparency(0.), + myColor(0), + myMaterial(0), + myWidth(0.), + myMode(0) { - myMode=0; } diff --git a/src/PTopoDS/PTopoDS_HShape.cxx b/src/PTopoDS/PTopoDS_HShape.cxx index 94566d6ffb..a485c27b3b 100755 --- a/src/PTopoDS/PTopoDS_HShape.cxx +++ b/src/PTopoDS/PTopoDS_HShape.cxx @@ -27,7 +27,7 @@ //======================================================================= PTopoDS_HShape::PTopoDS_HShape() : - myOrient(TopAbs_FORWARD) + myOrient(TopAbs_FORWARD) { } diff --git a/src/PTopoDS/PTopoDS_Shape1.cxx b/src/PTopoDS/PTopoDS_Shape1.cxx index be86a024fd..be462612f0 100755 --- a/src/PTopoDS/PTopoDS_Shape1.cxx +++ b/src/PTopoDS/PTopoDS_Shape1.cxx @@ -32,9 +32,9 @@ //purpose : //======================================================================= -PTopoDS_Shape1::PTopoDS_Shape1() -: myOrient(TopAbs_FORWARD) -{} +PTopoDS_Shape1::PTopoDS_Shape1() : myOrient(TopAbs_FORWARD) +{ +} //======================================================================= diff --git a/src/PTopoDS/PTopoDS_TShape.cxx b/src/PTopoDS/PTopoDS_TShape.cxx index 782c2401a7..30616446c6 100755 --- a/src/PTopoDS/PTopoDS_TShape.cxx +++ b/src/PTopoDS/PTopoDS_TShape.cxx @@ -36,8 +36,7 @@ static const Standard_Integer ConvexMask = 64; //purpose : //======================================================================= -PTopoDS_TShape::PTopoDS_TShape() : - myFlags(0) +PTopoDS_TShape::PTopoDS_TShape() : myFlags(0) { // UPDATE FMA - 28-11-95 // These two flags are always set to the Transient Value diff --git a/src/PXCAFDoc/PXCAFDoc_Area.cxx b/src/PXCAFDoc/PXCAFDoc_Area.cxx index f7cd3825e7..0892ffcd76 100755 --- a/src/PXCAFDoc/PXCAFDoc_Area.cxx +++ b/src/PXCAFDoc/PXCAFDoc_Area.cxx @@ -26,7 +26,7 @@ //purpose : //======================================================================= -PXCAFDoc_Area::PXCAFDoc_Area () { } +PXCAFDoc_Area::PXCAFDoc_Area () : myValue(0.) { } //======================================================================= //function : PXCAFDoc_Area diff --git a/src/PXCAFDoc/PXCAFDoc_DimTol.cxx b/src/PXCAFDoc/PXCAFDoc_DimTol.cxx index c427ab4bf2..3552ad1f55 100755 --- a/src/PXCAFDoc/PXCAFDoc_DimTol.cxx +++ b/src/PXCAFDoc/PXCAFDoc_DimTol.cxx @@ -25,7 +25,7 @@ //purpose : //======================================================================= -PXCAFDoc_DimTol::PXCAFDoc_DimTol () +PXCAFDoc_DimTol::PXCAFDoc_DimTol () : myKind(0) {} //======================================================================= diff --git a/src/PXCAFDoc/PXCAFDoc_Material.cxx b/src/PXCAFDoc/PXCAFDoc_Material.cxx index 5f36268f82..0c00899081 100755 --- a/src/PXCAFDoc/PXCAFDoc_Material.cxx +++ b/src/PXCAFDoc/PXCAFDoc_Material.cxx @@ -25,7 +25,7 @@ //purpose : //======================================================================= -PXCAFDoc_Material::PXCAFDoc_Material () +PXCAFDoc_Material::PXCAFDoc_Material () : myDensity(0.) {} //======================================================================= diff --git a/src/PXCAFDoc/PXCAFDoc_Volume.cxx b/src/PXCAFDoc/PXCAFDoc_Volume.cxx index 083d855455..09dec8f738 100755 --- a/src/PXCAFDoc/PXCAFDoc_Volume.cxx +++ b/src/PXCAFDoc/PXCAFDoc_Volume.cxx @@ -26,7 +26,7 @@ //purpose : //======================================================================= -PXCAFDoc_Volume::PXCAFDoc_Volume () { } +PXCAFDoc_Volume::PXCAFDoc_Volume () : myValue(0.) { } //======================================================================= //function : PXCAFDoc_Volume diff --git a/src/ProjLib/ProjLib_ProjectOnPlane.cxx b/src/ProjLib/ProjLib_ProjectOnPlane.cxx index 069b9f1c47..bbfefa11b6 100755 --- a/src/ProjLib/ProjLib_ProjectOnPlane.cxx +++ b/src/ProjLib/ProjLib_ProjectOnPlane.cxx @@ -379,6 +379,10 @@ static void PerformApprox (const Handle(Adaptor3d_HCurve)& C, //======================================================================= ProjLib_ProjectOnPlane::ProjLib_ProjectOnPlane() : +myKeepParam(Standard_False), +myFirstPar(0.), +myLastPar(0.), +myTolerance(0.), myType (GeomAbs_OtherCurve), myIsApprox (Standard_False) { @@ -392,6 +396,10 @@ myIsApprox (Standard_False) ProjLib_ProjectOnPlane::ProjLib_ProjectOnPlane(const gp_Ax3& Pl) : myPlane (Pl) , myDirection (Pl.Direction()) , +myKeepParam(Standard_False), +myFirstPar(0.), +myLastPar(0.), +myTolerance(0.), myType (GeomAbs_OtherCurve), myIsApprox (Standard_False) { @@ -406,6 +414,10 @@ ProjLib_ProjectOnPlane::ProjLib_ProjectOnPlane(const gp_Ax3& Pl, const gp_Dir& D ) : myPlane (Pl) , myDirection (D) , +myKeepParam(Standard_False), +myFirstPar(0.), +myLastPar(0.), +myTolerance(0.), myType (GeomAbs_OtherCurve), myIsApprox (Standard_False) { diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index 6eb1906ab4..f7204a75a7 100755 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -227,6 +227,7 @@ STEPCAFControl_Reader::STEPCAFControl_Reader (): myNameMode ( Standard_True ), myLayerMode( Standard_True ), myPropsMode( Standard_True ), + mySHUOMode ( Standard_False ), myGDTMode ( Standard_True ), myMatMode ( Standard_True ) { @@ -246,6 +247,7 @@ STEPCAFControl_Reader::STEPCAFControl_Reader (const Handle(XSControl_WorkSession myNameMode ( Standard_True ), myLayerMode( Standard_True ), myPropsMode( Standard_True ), + mySHUOMode ( Standard_False ), myGDTMode ( Standard_True ), myMatMode ( Standard_True ) { diff --git a/src/Standard/Standard_ErrorHandlerCallback.lxx b/src/Standard/Standard_ErrorHandlerCallback.lxx index 402251a4db..1d49d6e7e3 100755 --- a/src/Standard/Standard_ErrorHandlerCallback.lxx +++ b/src/Standard/Standard_ErrorHandlerCallback.lxx @@ -23,7 +23,8 @@ #if ! defined(NO_CXX_EXCEPTION) && ! defined(OCC_CONVERT_SIGNALS) -inline Standard_ErrorHandlerCallback::Standard_ErrorHandlerCallback () +inline Standard_ErrorHandlerCallback::Standard_ErrorHandlerCallback () + : myHandler(0), myPrev(0), myNext(0) { } diff --git a/src/StepVisual/StepVisual_DirectionCountSelect.cxx b/src/StepVisual/StepVisual_DirectionCountSelect.cxx index 5e0522f36c..1d45877cb3 100755 --- a/src/StepVisual/StepVisual_DirectionCountSelect.cxx +++ b/src/StepVisual/StepVisual_DirectionCountSelect.cxx @@ -17,7 +17,11 @@ #include -StepVisual_DirectionCountSelect::StepVisual_DirectionCountSelect() {} +StepVisual_DirectionCountSelect::StepVisual_DirectionCountSelect() : + theUDirectionCount(0), + theVDirectionCount(0), + theTypeOfContent(0) +{} void StepVisual_DirectionCountSelect::SetTypeOfContent(const Standard_Integer aType) { diff --git a/src/TNaming/TNaming_Name.cxx b/src/TNaming/TNaming_Name.cxx index fe738e096b..44623c145f 100755 --- a/src/TNaming/TNaming_Name.cxx +++ b/src/TNaming/TNaming_Name.cxx @@ -214,7 +214,9 @@ static Standard_Boolean ValidArgs(const TNaming_ListOfNamedShape& Args) //purpose : //======================================================================= -TNaming_Name::TNaming_Name():myIndex(-1) +TNaming_Name::TNaming_Name() : + myType(TNaming_UNKNOWN), + myIndex(-1) { } diff --git a/src/TObj/TObj_Application.cxx b/src/TObj/TObj_Application.cxx index 4c1fdbfdc6..7cec227645 100755 --- a/src/TObj/TObj_Application.cxx +++ b/src/TObj/TObj_Application.cxx @@ -48,7 +48,7 @@ Handle(TObj_Application) TObj_Application::GetInstance() //purpose : //======================================================================= -TObj_Application::TObj_Application () +TObj_Application::TObj_Application () : myIsError(Standard_False) { myMessenger = new Message_Messenger; myMessageDriver = new CDM_COutMessageDriver; diff --git a/src/TestTopOpe/TestTopOpe_MiscBOOP.cxx b/src/TestTopOpe/TestTopOpe_MiscBOOP.cxx index 0933d80712..9343fa6084 100755 --- a/src/TestTopOpe/TestTopOpe_MiscBOOP.cxx +++ b/src/TestTopOpe/TestTopOpe_MiscBOOP.cxx @@ -28,7 +28,9 @@ TestTopOpe_BOOP::TestTopOpe_BOOP(const char* keys[], - const char* resnamdef) + const char* resnamdef) : + mynmet(0), + myESP(Standard_False) { Standard_Integer i; for (i=0;i #endif -VarsTopo::VarsTopo() +VarsTopo::VarsTopo() : mytolarc(0.), mytoltan(0.) { Init(); } diff --git a/src/TopOpeBRep/TopOpeBRep_LineInter.lxx b/src/TopOpeBRep/TopOpeBRep_LineInter.lxx index 2271b4f6f7..3013e0cb01 100755 --- a/src/TopOpeBRep/TopOpeBRep_LineInter.lxx +++ b/src/TopOpeBRep/TopOpeBRep_LineInter.lxx @@ -29,13 +29,15 @@ inline TopOpeBRep_LineInter::TopOpeBRep_LineInter() : myOK(Standard_True), - //myIndex, myNbVPoint, + myIndex(0), myNbVPoint(0), myIsVClosed(Standard_False), myHasVPonR(Standard_False), myINL(Standard_False), - myVPBDefined(Standard_False) - //myVPF, myVPL, myVPN, - //myTypeLineCurve, myLineTonF1, myLineTonF2 + myVPBDefined(Standard_False), + myVPF(0), myVPL(0), myVPN(0), + myTypeLineCurve(TopOpeBRep_OTHERTYPE), + myexF1(0),myexF2(0) + //myLineTonF1, myLineTonF2 { } diff --git a/src/TopOpeBRep/TopOpeBRep_VPointInter.lxx b/src/TopOpeBRep/TopOpeBRep_VPointInter.lxx index 7887ea9303..e8e07d0096 100755 --- a/src/TopOpeBRep/TopOpeBRep_VPointInter.lxx +++ b/src/TopOpeBRep/TopOpeBRep_VPointInter.lxx @@ -33,7 +33,7 @@ inline TopOpeBRep_VPointInter::TopOpeBRep_VPointInter() : myState1(TopAbs_UNKNOWN), myState2(TopAbs_UNKNOWN), myKeep(Standard_False), - //myEdgeONPar1, myEdgeONPar2, + myEdgeONPar1(0.), myEdgeONPar2(0.), myIndex(0), myS1(0),myS2(0) { diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.lxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.lxx index 283a5ea24f..979c29820e 100755 --- a/src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.lxx +++ b/src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.lxx @@ -26,7 +26,10 @@ //purpose : //======================================================================= -inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace ():myDone(Standard_False) +inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace () : + myInternal(Standard_False), + myModified(Standard_False), + myDone(Standard_False) {} diff --git a/src/TopOpeBRepDS/TopOpeBRepDS_DataStructure.cxx b/src/TopOpeBRepDS/TopOpeBRepDS_DataStructure.cxx index 34bc635a22..67cd6cc36c 100755 --- a/src/TopOpeBRepDS/TopOpeBRepDS_DataStructure.cxx +++ b/src/TopOpeBRepDS/TopOpeBRepDS_DataStructure.cxx @@ -48,7 +48,8 @@ TopOpeBRepDS_DataStructure::TopOpeBRepDS_DataStructure() : myNbSurfaces(0), myNbCurves(0), myNbPoints(0), -myIsfafa(Standard_False) +myIsfafa(Standard_False), +myI(0) { } diff --git a/src/VrmlData/VrmlData_TextureTransform.hxx b/src/VrmlData/VrmlData_TextureTransform.hxx index 551f95a19b..1c08ca7343 100755 --- a/src/VrmlData/VrmlData_TextureTransform.hxx +++ b/src/VrmlData/VrmlData_TextureTransform.hxx @@ -42,7 +42,8 @@ class VrmlData_TextureTransform : public VrmlData_Node */ inline VrmlData_TextureTransform (const VrmlData_Scene& theScene, const char * theName) - : VrmlData_Node (theScene, theName) + : VrmlData_Node (theScene, theName), + myRotation(0.) {} /** -- 2.20.1