Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix some compilation warnings
[modules/geom.git]
/
src
/
SKETCHER
/
Sketcher_Profile.cxx
diff --git
a/src/SKETCHER/Sketcher_Profile.cxx
b/src/SKETCHER/Sketcher_Profile.cxx
index 196b8b12968cfa345b7c257dff72126c34bb0fed..fdb7d5bb89debb04c4fabfe18ac47dddd9c8b208 100644
(file)
--- a/
src/SKETCHER/Sketcher_Profile.cxx
+++ b/
src/SKETCHER/Sketcher_Profile.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
6
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
//
// 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
*/
\brief Constructor
\internal
*/
-Sketcher_Profile::Functor::Functor() : my
Error( 0 ), myNumberOfCommand
( 0 ), myOk( true )
+Sketcher_Profile::Functor::Functor() : my
NumberOfCommand( 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 )
{
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);
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;
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 )
{
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);
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;
myLength = ( myLength - myY ) / myDy;
if ( Abs( myLength ) > Precision::Confusion() )
myMove = line;
- else
- myMove = none;
}
/*!
}
/*!