mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0024274: Eliminate GCC compiler warning (wrong initialize order)
Eliminated GCC compiler warning about wrong initialize order
This commit is contained in:
parent
84f4830127
commit
2f6cb3ac69
@ -55,7 +55,7 @@ static void GetConeApexParam(const gp_Cone& C, Standard_Real& U, Standard_Real&
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Adaptor3d_TopolTool::Adaptor3d_TopolTool () : nbRestr(0),myNbSamplesU(-1),idRestr(0)
|
Adaptor3d_TopolTool::Adaptor3d_TopolTool () : nbRestr(0),idRestr(0),myNbSamplesU(-1)
|
||||||
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -38,19 +38,19 @@ Aspect_ColorScale::Aspect_ColorScale()
|
|||||||
: MMgt_TShared(),
|
: MMgt_TShared(),
|
||||||
myMin( 0.0 ),
|
myMin( 0.0 ),
|
||||||
myMax( 1.0 ),
|
myMax( 1.0 ),
|
||||||
|
myTitle( "" ),
|
||||||
|
myFormat( "%.4g" ),
|
||||||
|
myInterval( 10 ),
|
||||||
|
myColorType( Aspect_TOCSD_AUTO ),
|
||||||
|
myLabelType( Aspect_TOCSD_AUTO ),
|
||||||
|
myAtBorder( Standard_True ),
|
||||||
|
myReversed( Standard_False ),
|
||||||
|
myLabelPos( Aspect_TOCSP_RIGHT ),
|
||||||
|
myTitlePos( Aspect_TOCSP_CENTER ),
|
||||||
myXPos( 0 ),
|
myXPos( 0 ),
|
||||||
myYPos( 0 ),
|
myYPos( 0 ),
|
||||||
myWidth( 0.2 ),
|
myWidth( 0.2 ),
|
||||||
myTitle( "" ),
|
|
||||||
myHeight( 1 ),
|
myHeight( 1 ),
|
||||||
myFormat( "%.4g" ),
|
|
||||||
myInterval( 10 ),
|
|
||||||
myAtBorder( Standard_True ),
|
|
||||||
myColorType( Aspect_TOCSD_AUTO ),
|
|
||||||
myReversed( Standard_False ),
|
|
||||||
myLabelType( Aspect_TOCSD_AUTO ),
|
|
||||||
myLabelPos( Aspect_TOCSP_RIGHT ),
|
|
||||||
myTitlePos( Aspect_TOCSP_CENTER ),
|
|
||||||
myTextHeight(20)
|
myTextHeight(20)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -81,8 +81,8 @@ BOPDS_DS::BOPDS_DS()
|
|||||||
myLines(myAllocator),
|
myLines(myAllocator),
|
||||||
myMapShapeIndex(100, myAllocator),
|
myMapShapeIndex(100, myAllocator),
|
||||||
myPaveBlocksPool(myAllocator),
|
myPaveBlocksPool(myAllocator),
|
||||||
myFaceInfoPool(myAllocator),
|
|
||||||
myMapPBCB(100, myAllocator),
|
myMapPBCB(100, myAllocator),
|
||||||
|
myFaceInfoPool(myAllocator),
|
||||||
myShapesSD(100, myAllocator),
|
myShapesSD(100, myAllocator),
|
||||||
myInterfTB(100, myAllocator),
|
myInterfTB(100, myAllocator),
|
||||||
myInterfVV(myAllocator),
|
myInterfVV(myAllocator),
|
||||||
@ -107,8 +107,8 @@ BOPDS_DS::BOPDS_DS(const Handle(NCollection_BaseAllocator)& theAllocator)
|
|||||||
myLines(myAllocator),
|
myLines(myAllocator),
|
||||||
myMapShapeIndex(100, myAllocator),
|
myMapShapeIndex(100, myAllocator),
|
||||||
myPaveBlocksPool(myAllocator),
|
myPaveBlocksPool(myAllocator),
|
||||||
myFaceInfoPool(myAllocator),
|
|
||||||
myMapPBCB(100, myAllocator),
|
myMapPBCB(100, myAllocator),
|
||||||
|
myFaceInfoPool(myAllocator),
|
||||||
myShapesSD(100, myAllocator),
|
myShapesSD(100, myAllocator),
|
||||||
myInterfTB(100, myAllocator),
|
myInterfTB(100, myAllocator),
|
||||||
myInterfVV(myAllocator),
|
myInterfVV(myAllocator),
|
||||||
|
@ -224,8 +224,8 @@ void CorrectWires(const TopoDS_Face& aFx)
|
|||||||
TopoDS_Vertex aV11, aV12, aV21, aV22;
|
TopoDS_Vertex aV11, aV12, aV21, aV22;
|
||||||
TopExp::Vertices(aE, aV11, aV12);
|
TopExp::Vertices(aE, aV11, aV12);
|
||||||
TopExp::Vertices(aE1, aV21, aV22);
|
TopExp::Vertices(aE1, aV21, aV22);
|
||||||
if (aV11.IsSame(aV21) && aV12.IsSame(aV22) ||
|
if ((aV11.IsSame(aV21) && aV12.IsSame(aV22)) ||
|
||||||
aV12.IsSame(aV21) && aV11.IsSame(aV22)) {
|
(aV12.IsSame(aV21) && aV11.IsSame(aV22))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,8 +44,8 @@ class BOPTools_ConnexityBlock {
|
|||||||
};
|
};
|
||||||
//
|
//
|
||||||
BOPTools_ConnexityBlock(const Handle(NCollection_BaseAllocator)& theAllocator):
|
BOPTools_ConnexityBlock(const Handle(NCollection_BaseAllocator)& theAllocator):
|
||||||
myRegular(Standard_True),
|
myAllocator(theAllocator),
|
||||||
myAllocator(theAllocator),
|
myRegular(Standard_True),
|
||||||
myShapes(myAllocator),
|
myShapes(myAllocator),
|
||||||
myLoops(myAllocator) {
|
myLoops(myAllocator) {
|
||||||
};
|
};
|
||||||
|
@ -210,8 +210,8 @@ static Standard_Boolean IsSameOriented(const TopoDS_Shape& aFace,
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
BRepFill_PipeShell::BRepFill_PipeShell(const TopoDS_Wire& Spine)
|
BRepFill_PipeShell::BRepFill_PipeShell(const TopoDS_Wire& Spine)
|
||||||
: mySpine(Spine),
|
: mySpine(Spine),
|
||||||
myTrihedron(GeomFill_IsCorrectedFrenet),
|
|
||||||
myForceApproxC1(Standard_False),
|
myForceApproxC1(Standard_False),
|
||||||
|
myTrihedron(GeomFill_IsCorrectedFrenet),
|
||||||
myTransition(BRepFill_Modified),
|
myTransition(BRepFill_Modified),
|
||||||
myStatus(GeomFill_PipeOk)
|
myStatus(GeomFill_PipeOk)
|
||||||
{
|
{
|
||||||
|
@ -97,9 +97,9 @@ OpenGl_Context::OpenGl_Context (const Handle(OpenGl_Caps)& theCaps)
|
|||||||
myClippingState (),
|
myClippingState (),
|
||||||
myGlLibHandle (NULL),
|
myGlLibHandle (NULL),
|
||||||
myGlCore20 (NULL),
|
myGlCore20 (NULL),
|
||||||
|
myAnisoMax (1),
|
||||||
myMaxTexDim (1024),
|
myMaxTexDim (1024),
|
||||||
myMaxClipPlanes (6),
|
myMaxClipPlanes (6),
|
||||||
myAnisoMax (1),
|
|
||||||
myGlVerMajor (0),
|
myGlVerMajor (0),
|
||||||
myGlVerMinor (0),
|
myGlVerMinor (0),
|
||||||
myIsFeedback (Standard_False),
|
myIsFeedback (Standard_False),
|
||||||
|
@ -29,10 +29,11 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_PrinterContext, Standard_Transient)
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
OpenGl_PrinterContext::OpenGl_PrinterContext()
|
OpenGl_PrinterContext::OpenGl_PrinterContext()
|
||||||
: myProjTransform (0, 3, 0, 3),
|
: myProjTransform (0, 3, 0, 3),
|
||||||
myLayerViewportX (0),
|
|
||||||
myScaleX (1.0f),
|
myScaleX (1.0f),
|
||||||
myLayerViewportY (0),
|
myScaleY (1.0f),
|
||||||
myScaleY (1.0f)
|
myLayerViewportX (0),
|
||||||
|
myLayerViewportY (0)
|
||||||
|
|
||||||
{
|
{
|
||||||
// identity projection matrix
|
// identity projection matrix
|
||||||
Standard_Real anInitValue = 0.0;
|
Standard_Real anInitValue = 0.0;
|
||||||
|
@ -97,13 +97,13 @@ OpenGl_View::OpenGl_View (const CALL_DEF_VIEWCONTEXT &AContext)
|
|||||||
myZClip(myDefaultZClip),
|
myZClip(myDefaultZClip),
|
||||||
myExtra(myDefaultExtra),
|
myExtra(myDefaultExtra),
|
||||||
myFog(myDefaultFog),
|
myFog(myDefaultFog),
|
||||||
|
myTrihedron(NULL),
|
||||||
|
myGraduatedTrihedron(NULL),
|
||||||
myVisualization(AContext.Visualization),
|
myVisualization(AContext.Visualization),
|
||||||
myIntShadingMethod(TEL_SM_GOURAUD),
|
myIntShadingMethod(TEL_SM_GOURAUD),
|
||||||
myAntiAliasing(Standard_False),
|
myAntiAliasing(Standard_False),
|
||||||
myTransPers(&myDefaultTransPers),
|
myTransPers(&myDefaultTransPers),
|
||||||
myTrihedron(NULL),
|
myIsTransPers(Standard_False)
|
||||||
myIsTransPers(Standard_False),
|
|
||||||
myGraduatedTrihedron(NULL)
|
|
||||||
{
|
{
|
||||||
// Initialize matrices
|
// Initialize matrices
|
||||||
memcpy(myOrientationMatrix,myDefaultMatrix,sizeof(Tmatrix3));
|
memcpy(myOrientationMatrix,myDefaultMatrix,sizeof(Tmatrix3));
|
||||||
|
@ -55,11 +55,11 @@ QANewModTopOpe_Limitation::QANewModTopOpe_Limitation(const TopoDS_Shape& theObje
|
|||||||
const TopoDS_Shape& theCutTool,
|
const TopoDS_Shape& theCutTool,
|
||||||
const QANewModTopOpe_ModeOfLimitation theMode) :
|
const QANewModTopOpe_ModeOfLimitation theMode) :
|
||||||
myObjectToCut(theObjectToCut),
|
myObjectToCut(theObjectToCut),
|
||||||
|
myCut(NULL),
|
||||||
|
myCommon(NULL),
|
||||||
myFwdIsDone(Standard_False),
|
myFwdIsDone(Standard_False),
|
||||||
myRevIsDone(Standard_False),
|
myRevIsDone(Standard_False),
|
||||||
myCut(NULL),
|
myMode(theMode)
|
||||||
myMode(theMode),
|
|
||||||
myCommon(NULL)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
TopExp_Explorer anExp;
|
TopExp_Explorer anExp;
|
||||||
|
@ -65,7 +65,7 @@ Standard_Boolean StepToGeom_MakeTrimmedCurve2d::Convert (const Handle(StepGeom_T
|
|||||||
const Handle(StepGeom_HArray1OfTrimmingSelect)& theTrimSel2 = SC->Trim2();
|
const Handle(StepGeom_HArray1OfTrimmingSelect)& theTrimSel2 = SC->Trim2();
|
||||||
const Standard_Integer nbSel1 = SC->NbTrim1();
|
const Standard_Integer nbSel1 = SC->NbTrim1();
|
||||||
const Standard_Integer nbSel2 = SC->NbTrim2();
|
const Standard_Integer nbSel2 = SC->NbTrim2();
|
||||||
if ((nbSel1 == nbSel2 == 1) &&
|
if ((nbSel1 == 1) && (nbSel2 == 1) &&
|
||||||
(theTrimSel1->Value(1).CaseMember() > 0) &&
|
(theTrimSel1->Value(1).CaseMember() > 0) &&
|
||||||
(theTrimSel2->Value(1).CaseMember() > 0))
|
(theTrimSel2->Value(1).CaseMember() > 0))
|
||||||
{
|
{
|
||||||
|
@ -271,8 +271,8 @@ MyActiveLights(),
|
|||||||
MyViewContext (),
|
MyViewContext (),
|
||||||
myActiveLightsIterator(),
|
myActiveLightsIterator(),
|
||||||
SwitchSetFront(Standard_False),
|
SwitchSetFront(Standard_False),
|
||||||
MyTrsf (1, 4, 1, 4), // S3892
|
MyProjModel(V3d_TPM_SCREEN),
|
||||||
MyProjModel(V3d_TPM_SCREEN)
|
MyTrsf (1, 4, 1, 4) // S3892
|
||||||
{
|
{
|
||||||
myImmediateUpdate = Standard_False;
|
myImmediateUpdate = Standard_False;
|
||||||
MyView = new Visual3d_View(MyViewer->Viewer());
|
MyView = new Visual3d_View(MyViewer->Viewer());
|
||||||
|
@ -50,8 +50,9 @@ Voxel_FastConverter::Voxel_FastConverter(const TopoDS_Shape& shape,
|
|||||||
const Standard_Boolean useExistingTriangulation)
|
const Standard_Boolean useExistingTriangulation)
|
||||||
:myShape(shape),myVoxels(&voxels),
|
:myShape(shape),myVoxels(&voxels),
|
||||||
myDeflection(deflection),
|
myDeflection(deflection),
|
||||||
|
myIsBool(2),
|
||||||
myNbX(nbx),myNbY(nby),myNbZ(nbz),
|
myNbX(nbx),myNbY(nby),myNbZ(nbz),
|
||||||
myIsBool(2),myNbThreads(nbthreads),
|
myNbThreads(nbthreads),
|
||||||
myNbTriangles(0),
|
myNbTriangles(0),
|
||||||
myUseExistingTriangulation(useExistingTriangulation)
|
myUseExistingTriangulation(useExistingTriangulation)
|
||||||
{
|
{
|
||||||
@ -68,8 +69,9 @@ Voxel_FastConverter::Voxel_FastConverter(const TopoDS_Shape& shape,
|
|||||||
const Standard_Boolean useExistingTriangulation)
|
const Standard_Boolean useExistingTriangulation)
|
||||||
:myShape(shape),myVoxels(&voxels),
|
:myShape(shape),myVoxels(&voxels),
|
||||||
myDeflection(deflection),
|
myDeflection(deflection),
|
||||||
|
myIsBool(1),
|
||||||
myNbX(nbx),myNbY(nby),myNbZ(nbz),
|
myNbX(nbx),myNbY(nby),myNbZ(nbz),
|
||||||
myIsBool(1),myNbThreads(nbthreads),
|
myNbThreads(nbthreads),
|
||||||
myNbTriangles(0),
|
myNbTriangles(0),
|
||||||
myUseExistingTriangulation(useExistingTriangulation)
|
myUseExistingTriangulation(useExistingTriangulation)
|
||||||
{
|
{
|
||||||
@ -86,8 +88,9 @@ Voxel_FastConverter::Voxel_FastConverter(const TopoDS_Shape& shape,
|
|||||||
const Standard_Boolean useExistingTriangulation)
|
const Standard_Boolean useExistingTriangulation)
|
||||||
:myShape(shape),myVoxels(&voxels),
|
:myShape(shape),myVoxels(&voxels),
|
||||||
myDeflection(deflection),
|
myDeflection(deflection),
|
||||||
|
myIsBool(0),
|
||||||
myNbX(nbx),myNbY(nby),myNbZ(nbz),
|
myNbX(nbx),myNbY(nby),myNbZ(nbz),
|
||||||
myIsBool(0),myNbThreads(nbthreads),
|
myNbThreads(nbthreads),
|
||||||
myNbTriangles(0),
|
myNbTriangles(0),
|
||||||
myUseExistingTriangulation(useExistingTriangulation)
|
myUseExistingTriangulation(useExistingTriangulation)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user