X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FNETGENPlugin%2FNETGENPlugin_SimpleHypothesis_2D_i.cxx;h=7f90be1616a81b735087c9f3c2dff0984852fb12;hb=2d646f5c7d5ad52f0a47ea87c18d9ce74273599b;hp=dab006aafe61e24008ec7f5edd48808515abe0fb;hpb=dbfaad0241b82abab3b68e9ea4532a9af098d10c;p=plugins%2Fnetgenplugin.git diff --git a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx index dab006a..7f90be1 100644 --- a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx +++ b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -45,14 +45,12 @@ using namespace std; //============================================================================= NETGENPlugin_SimpleHypothesis_2D_i:: NETGENPlugin_SimpleHypothesis_2D_i (PortableServer::POA_ptr thePOA, - int theStudyId, ::SMESH_Gen* theGenImpl) : SALOME::GenericObj_i( thePOA ), SMESH_Hypothesis_i( thePOA ) { //MESSAGE( "NETGENPlugin_SimpleHypothesis_2D_i::NETGENPlugin_SimpleHypothesis_2D_i" ); myBaseImpl = new ::NETGENPlugin_SimpleHypothesis_2D (theGenImpl->GetANewId(), - theStudyId, theGenImpl); } @@ -73,8 +71,7 @@ NETGENPlugin_SimpleHypothesis_2D_i::~NETGENPlugin_SimpleHypothesis_2D_i() * NETGENPlugin_SimpleHypothesis_2D_i::SetNumberOfSegments */ //============================================================================= -void NETGENPlugin_SimpleHypothesis_2D_i::SetNumberOfSegments(CORBA::Short nb) - throw ( SALOME::SALOME_Exception ) +void NETGENPlugin_SimpleHypothesis_2D_i::SetNumberOfSegments(CORBA::Long nb) { ASSERT(myBaseImpl); try { @@ -91,10 +88,10 @@ void NETGENPlugin_SimpleHypothesis_2D_i::SetNumberOfSegments(CORBA::Short nb) * NETGENPlugin_SimpleHypothesis_2D_i::GetNumberOfSegments() */ //============================================================================= -CORBA::Short NETGENPlugin_SimpleHypothesis_2D_i::GetNumberOfSegments() +CORBA::Long NETGENPlugin_SimpleHypothesis_2D_i::GetNumberOfSegments() { ASSERT(myBaseImpl); - return this->GetImpl()->GetNumberOfSegments(); + return (CORBA::Long) this->GetImpl()->GetNumberOfSegments(); } //================================================================================ @@ -239,7 +236,7 @@ int NETGENPlugin_SimpleHypothesis_2D_i::getParamIndex(const TCollection_AsciiStr //================================================================================ std::string NETGENPlugin_SimpleHypothesis_2D_i::getMethodOfParameter(const int paramIndex, - int nbVars) const + int /*nbVars*/) const { switch ( paramIndex ) { case 0: return GetImpl()->GetNumberOfSegments() ? "SetNumberOfSegments" : "SetLocalLength";