From: SALOME Date: Fri, 21 Aug 2020 10:42:17 +0000 (+0300) Subject: fight warnings c++17 error throw(). Build NETGENPLUGIN finished X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3644a44d0f63a9687459c3d0a59c1eb10a73342;p=plugins%2Fnetgenplugin.git fight warnings c++17 error throw(). Build NETGENPLUGIN finished --- diff --git a/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx b/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx index e10cf8b..367cb6d 100644 --- a/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx @@ -337,7 +337,6 @@ CORBA::Double NETGENPlugin_Hypothesis_i::GetChordalError() void NETGENPlugin_Hypothesis_i::SetLocalSizeOnShape(GEOM::GEOM_Object_ptr GeomObj, CORBA::Double localSize) - throw (SALOME::SALOME_Exception) { string entry; entry = GeomObj->GetStudyEntry(); diff --git a/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.hxx b/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.hxx index d1f54b6..e38b809 100644 --- a/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.hxx +++ b/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.hxx @@ -83,8 +83,7 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis_i: void SetChordalError(CORBA::Double value); CORBA::Double GetChordalError(); - void SetLocalSizeOnShape(GEOM::GEOM_Object_ptr GeomObj, CORBA::Double localSize) - throw (SALOME::SALOME_Exception); + void SetLocalSizeOnShape(GEOM::GEOM_Object_ptr GeomObj, CORBA::Double localSize); void SetLocalSizeOnEntry(const char* entry, CORBA::Double localSize); CORBA::Double GetLocalSizeOnEntry(const char* entry); NETGENPlugin::string_array* GetLocalSizeEntries(); diff --git a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.cxx b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.cxx index c7b192c..a457183 100644 --- a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.cxx @@ -59,7 +59,7 @@ NETGENPlugin_SimpleHypothesis_2D::NETGENPlugin_SimpleHypothesis_2D (int * */ //============================================================================= -void NETGENPlugin_SimpleHypothesis_2D::SetNumberOfSegments(int nb) throw (SALOME_Exception) +void NETGENPlugin_SimpleHypothesis_2D::SetNumberOfSegments(int nb) { if ( nb < 1 ) throw SALOME_Exception("Number of segments must be positive"); @@ -77,7 +77,6 @@ void NETGENPlugin_SimpleHypothesis_2D::SetNumberOfSegments(int nb) throw (SALOME */ //============================================================================= void NETGENPlugin_SimpleHypothesis_2D::SetLocalLength(double segmentLength) - throw (SALOME_Exception) { if ( segmentLength < DBL_MIN ) throw SALOME_Exception("segment length must be more than zero"); diff --git a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.hxx b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.hxx index 3ad1744..c5f075d 100644 --- a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.hxx +++ b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.hxx @@ -43,7 +43,7 @@ public: /*! * Sets value */ - void SetNumberOfSegments(int nb) throw (SALOME_Exception); + void SetNumberOfSegments(int nb); /*! * Returns value. * Can be zero in case if LocalLength() has been set @@ -53,7 +53,7 @@ public: /*! * Sets value */ - void SetLocalLength(double segmentLength) throw (SALOME_Exception); + void SetLocalLength(double segmentLength); /*! * Returns value. * Can be zero in case if NumberOfSegments() has been set diff --git a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx index 68b087b..aa57fbf 100644 --- a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx +++ b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx @@ -72,7 +72,6 @@ NETGENPlugin_SimpleHypothesis_2D_i::~NETGENPlugin_SimpleHypothesis_2D_i() */ //============================================================================= void NETGENPlugin_SimpleHypothesis_2D_i::SetNumberOfSegments(CORBA::Short nb) - throw ( SALOME::SALOME_Exception ) { ASSERT(myBaseImpl); try { diff --git a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.hxx b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.hxx index 24e9ef9..148169c 100644 --- a/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.hxx +++ b/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.hxx @@ -49,7 +49,7 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_SimpleHypothesis_2D_i: // Destructor virtual ~NETGENPlugin_SimpleHypothesis_2D_i(); - void SetNumberOfSegments(CORBA::Short nb) throw ( SALOME::SALOME_Exception ); + void SetNumberOfSegments(CORBA::Short nb) ; CORBA::Short GetNumberOfSegments(); void SetLocalLength(CORBA::Double segmentLength);