X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FStdMeshers_I%2FStdMeshers_StartEndLength_i.cxx;h=aa38fc2ad01767d2b13a60c1aecbdedf90c69f6f;hb=f816f204d33b5250ee211247a798a1af42c528ea;hp=61b855a1dc111eda34f1fcf60c4d8de41862ff74;hpb=bd4e115a78b52e3fbc016e5e30bb0e19b2a9e7d6;p=modules%2Fsmesh.git diff --git a/src/StdMeshers_I/StdMeshers_StartEndLength_i.cxx b/src/StdMeshers_I/StdMeshers_StartEndLength_i.cxx index 61b855a1d..aa38fc2ad 100644 --- a/src/StdMeshers_I/StdMeshers_StartEndLength_i.cxx +++ b/src/StdMeshers_I/StdMeshers_StartEndLength_i.cxx @@ -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 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; }