Salome HOME
Typo-fix by Kunda
[modules/smesh.git] / src / StdMeshers_I / StdMeshers_StartEndLength_i.cxx
index 61b855a1dc111eda34f1fcf60c4d8de41862ff74..aa38fc2ad01767d2b13a60c1aecbdedf90c69f6f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  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
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -20,7 +20,7 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
+//  SMESH SMESH_I : idl implementation based on 'SMESH' unit's classes
 //  File   : StdMeshers_StartEndLength_i.cxx
 //           Moved here from SMESH_LocalLength_i.cxx
 //  Author : Paul RASCLE, EDF
@@ -47,15 +47,12 @@ using namespace std;
 //=============================================================================
 
 StdMeshers_StartEndLength_i::StdMeshers_StartEndLength_i( PortableServer::POA_ptr thePOA,
-                                                         int                     theStudyId,
-                                                         ::SMESH_Gen*            theGenImpl )
+                                                          ::SMESH_Gen*            theGenImpl )
      : SALOME::GenericObj_i( thePOA ), 
        SMESH_Hypothesis_i( thePOA )
 {
-  MESSAGE( "StdMeshers_StartEndLength_i::StdMeshers_StartEndLength_i" );
   myBaseImpl = new ::StdMeshers_StartEndLength( theGenImpl->GetANewId(),
-                                               theStudyId,
-                                               theGenImpl );
+                                                theGenImpl );
 }
 
 //=============================================================================
@@ -68,7 +65,6 @@ StdMeshers_StartEndLength_i::StdMeshers_StartEndLength_i( PortableServer::POA_pt
 
 StdMeshers_StartEndLength_i::~StdMeshers_StartEndLength_i()
 {
-  MESSAGE( "StdMeshers_StartEndLength_i::~StdMeshers_StartEndLength_i" );
 }
 
 //=============================================================================
@@ -83,7 +79,6 @@ void StdMeshers_StartEndLength_i::SetLength(CORBA::Double theLength,
                                             CORBA::Boolean theIsStart )
      throw ( SALOME::SALOME_Exception )
 {
-  MESSAGE( "StdMeshers_StartEndLength_i::SetLength" );
   ASSERT( myBaseImpl );
   try {
     this->GetImpl()->SetLength( theLength, theIsStart );
@@ -133,7 +128,6 @@ void StdMeshers_StartEndLength_i::SetEndLength( CORBA::Double length)
 
 CORBA::Double StdMeshers_StartEndLength_i::GetLength( CORBA::Boolean theIsStart)
 {
-  MESSAGE( "StdMeshers_StartEndLength_i::GetLength" );
   ASSERT( myBaseImpl );
   return this->GetImpl()->GetLength( theIsStart );
 }
@@ -223,7 +217,7 @@ SMESH::long_array* StdMeshers_StartEndLength_i::GetReversedEdges()
   SMESH::long_array_var anArray = new SMESH::long_array;
   std::vector<int> ids = this->GetImpl()->GetReversedEdges();
   anArray->length( ids.size() );
-  for ( CORBA::Long i = 0; i < ids.size(); i++)
+  for ( CORBA::ULong i = 0; i < ids.size(); i++)
     anArray [ i ] = ids [ i ];
 
   return anArray._retn();
@@ -239,7 +233,6 @@ SMESH::long_array* StdMeshers_StartEndLength_i::GetReversedEdges()
 
 ::StdMeshers_StartEndLength* StdMeshers_StartEndLength_i::GetImpl()
 {
-  MESSAGE( "StdMeshers_StartEndLength_i::GetImpl" );
   return ( ::StdMeshers_StartEndLength* )myBaseImpl;
 }