Salome HOME
Fix some compilation warnings
[modules/geom.git] / src / SKETCHER / Sketcher_Profile.cxx
index 196b8b12968cfa345b7c257dff72126c34bb0fed..fdb7d5bb89debb04c4fabfe18ac47dddd9c8b208 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -369,7 +369,7 @@ private:
   \brief Constructor
   \internal
 */
-Sketcher_Profile::Functor::Functor() : myError( 0 ), myNumberOfCommand( 0 ), myOk( true )
+Sketcher_Profile::Functor::Functor() : myNumberOfCommand( 0 ), myError( 0 ), myOk( true )
 {
 }
 
@@ -636,6 +636,7 @@ void Sketcher_Profile::ShapeFunctor::addSegmentLength( const TCollection_AsciiSt
 void Sketcher_Profile::ShapeFunctor::addSegmentX( const TCollection_AsciiString& x,
                                                   int CurrentIndex )
 {
+  myMove = none;
   myLength = x.RealValue();
   if ( Abs( myDx ) < Precision::Confusion() ) {
     MESSAGE("profile : cannot intersect, arg "<<CurrentIndex-1);
@@ -644,8 +645,6 @@ void Sketcher_Profile::ShapeFunctor::addSegmentX( const TCollection_AsciiString&
   myLength = ( myLength - myX ) / myDx;
   if ( Abs( myLength ) > Precision::Confusion() )
     myMove = line;
-  else
-    myMove = none;
 }
 
 /*!
@@ -657,6 +656,7 @@ void Sketcher_Profile::ShapeFunctor::addSegmentX( const TCollection_AsciiString&
 void Sketcher_Profile::ShapeFunctor::addSegmentY( const TCollection_AsciiString& y,
                                                   int CurrentIndex )
 {
+  myMove = none;
   myLength = y.RealValue();
   if ( Abs( myDy ) < Precision::Confusion() ) {
     MESSAGE("profile : cannot intersect, arg "<<CurrentIndex-1);
@@ -665,8 +665,6 @@ void Sketcher_Profile::ShapeFunctor::addSegmentY( const TCollection_AsciiString&
   myLength = ( myLength - myY ) / myDy;
   if ( Abs( myLength ) > Precision::Confusion() )
     myMove = line;
-  else
-    myMove = none;
 }
 
 /*!