From: eap Date: Thu, 10 Dec 2020 09:09:02 +0000 (+0300) Subject: #18963 Minimize compiler warnings (finish) X-Git-Tag: V9_7_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=def1a0bf9b6912a3c99262f0d6c7c6299d795217;p=plugins%2Fblsurfplugin.git #18963 Minimize compiler warnings (finish) --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index e7529a3..eaa9178 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -621,7 +621,7 @@ void BLSURFPlugin_BLSURF::createEnforcedVertexOnFace(TopoDS_Shape faceShape, BLS ///////////////////////////////////////////////////////// void createAttractorOnFace(TopoDS_Shape GeomShape, std::string AttractorFunction, double defaultSize) { - double xa=0., ya=0., za=0.; // Coordinates of attractor point // todo: xa, ya, za must be explicitly initialized to avoid warning (see below) + double xa=0., ya=0., za=0.; // Coordinates of attractor point double a, b; // Attractor parameter double d = 0.; bool createNode=false; // To create a node on attractor projection @@ -678,7 +678,7 @@ void createAttractorOnFace(TopoDS_Shape GeomShape, std::string AttractorFunction } // Get the (u,v) values of the attractor on the face - projectionPoint myPoint = getProjectionPoint(TopoDS::Face(GeomShape),gp_Pnt(xa,ya,za)); // todo: xa, ya, za must be explicitly initialized to avoid warning (see above) + projectionPoint myPoint = getProjectionPoint(TopoDS::Face(GeomShape),gp_Pnt(xa,ya,za)); gp_XY uvPoint = myPoint.uv; gp_XYZ xyzPoint = myPoint.xyz; Standard_Real u0 = uvPoint.X(); diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index f45af8a..db551c4 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -1650,8 +1650,9 @@ BLSURFPlugin_Hypothesis::TEnfVertex* BLSURFPlugin_Hypothesis::GetEnfVertex(const //function : ClearEnforcedVertex //======================================================================= -bool BLSURFPlugin_Hypothesis::ClearEnforcedVertex(const TEntry& theFaceEntry, double x, double y, double z, - const TEntry& theVertexEntry) +bool BLSURFPlugin_Hypothesis::ClearEnforcedVertex(const TEntry& theFaceEntry, + double x, double y, double z, + const TEntry& theVertexEntry) { bool toNotify = false; std::ostringstream msg; @@ -2477,7 +2478,7 @@ std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load) isOK = static_cast(load >> option_or_sm); if (isOK) { - if ( (option_or_sm == "1")||(option_or_sm == "0") ) { + if (( option_or_sm == "1" ) || ( option_or_sm == "0" )) { i = atoi(option_or_sm.c_str()); hasCADSurfOptions = true; _phySizeRel = (bool) i; diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx index 557a882..4fb63f6 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx @@ -1977,7 +1977,6 @@ char* BLSURFPlugin_Hypothesis_i::GetAttractorEntry(const char* entry) { // // TODO coder cette fonction (utilis??e pour savoir si la valeur a chang?? // // A finir pour le dump // char* BLSURFPlugin_Hypothesis_i::GetClassAttractorEntry(const char* entry) -// // { // ASSERT(myBaseImpl); // try { @@ -2061,7 +2060,7 @@ BLSURFPlugin::TAttParamsMap* BLSURFPlugin_Hypothesis_i::GetAttractorParams() for ( int i = 0 ; atIt != attractors.end(); ++atIt, ++i ) { string faceEntry = atIt->first; string attEntry; - double startSize=0., endSize=0., infDist=0., constDist=0.; // todo: startSize, endSize, infDist, constDist must be explicitly initialized to avoid warning (see below) + double startSize=0., endSize=0., infDist=0., constDist=0.; if ( !atIt->second->Empty() ) { attEntry = atIt->second->GetAttractorEntry(); std::vector params = atIt->second->GetParameters(); @@ -2075,7 +2074,7 @@ BLSURFPlugin::TAttParamsMap* BLSURFPlugin_Hypothesis_i::GetAttractorParams() result[i].startSize = startSize; result[i].endSize = endSize; result[i].infDist = infDist; - result[i].constDist = constDist; // todo: startSize, endSize, infDist, constDist must be explicitly initialized to avoid warning (see above) + result[i].constDist = constDist; } return result._retn(); }