From b5204c6c377888fb47c37b5c91b784379da5f4d5 Mon Sep 17 00:00:00 2001 From: kgv Date: Wed, 2 Mar 2022 08:18:29 +0300 Subject: [PATCH] 0032860: Coding Rules, Extrema_GenExtPS - add exported destructor Added eplicit destructors to classes Extrema_GenExtCS, Extrema_GenExtPS and Extrema_GenExtSS. --- src/Extrema/Extrema_GenExtCS.cxx | 9 +++++++++ src/Extrema/Extrema_GenExtCS.hxx | 7 +++++-- src/Extrema/Extrema_GenExtPS.cxx | 12 ++++++++++++ src/Extrema/Extrema_GenExtPS.hxx | 6 +++++- src/Extrema/Extrema_GenExtSS.cxx | 9 +++++++++ src/Extrema/Extrema_GenExtSS.hxx | 7 +++++-- 6 files changed, 45 insertions(+), 5 deletions(-) diff --git a/src/Extrema/Extrema_GenExtCS.cxx b/src/Extrema/Extrema_GenExtCS.cxx index fa17ce9503..c6a8f5089b 100644 --- a/src/Extrema/Extrema_GenExtCS.cxx +++ b/src/Extrema/Extrema_GenExtCS.cxx @@ -120,6 +120,15 @@ Extrema_GenExtCS::Extrema_GenExtCS() { } +// ======================================================================= +// function : ~Extrema_GenExtCS +// purpose : +// ======================================================================= +Extrema_GenExtCS::~Extrema_GenExtCS() +{ + // +} + //======================================================================= //function : Extrema_GenExtCS //purpose : diff --git a/src/Extrema/Extrema_GenExtCS.hxx b/src/Extrema/Extrema_GenExtCS.hxx index 6b141077d2..cd460ba7f2 100644 --- a/src/Extrema/Extrema_GenExtCS.hxx +++ b/src/Extrema/Extrema_GenExtCS.hxx @@ -35,9 +35,12 @@ public: DEFINE_STANDARD_ALLOC - + //! Empty constructor. Standard_EXPORT Extrema_GenExtCS(); - + + //! Destructor. + Standard_EXPORT ~Extrema_GenExtCS(); + //! It calculates all the distances. //! The function F(u,v)=distance(S1(u1,v1),S2(u2,v2)) has an //! extremum when gradient(F)=0. The algorithm searches diff --git a/src/Extrema/Extrema_GenExtPS.cxx b/src/Extrema/Extrema_GenExtPS.cxx index 0f9e57da57..3770bb1b64 100644 --- a/src/Extrema/Extrema_GenExtPS.cxx +++ b/src/Extrema/Extrema_GenExtPS.cxx @@ -224,7 +224,19 @@ Extrema_GenExtPS::Extrema_GenExtPS() myAlgo = Extrema_ExtAlgo_Grad; } +// ======================================================================= +// function : ~Extrema_GenExtPS +// purpose : +// ======================================================================= +Extrema_GenExtPS::~Extrema_GenExtPS() +{ + // +} +// ======================================================================= +// function : Extrema_GenExtPS +// purpose : +// ======================================================================= Extrema_GenExtPS::Extrema_GenExtPS (const gp_Pnt& P, const Adaptor3d_Surface& S, const Standard_Integer NbU, diff --git a/src/Extrema/Extrema_GenExtPS.hxx b/src/Extrema/Extrema_GenExtPS.hxx index fc14c4874d..61d3b8c769 100644 --- a/src/Extrema/Extrema_GenExtPS.hxx +++ b/src/Extrema/Extrema_GenExtPS.hxx @@ -37,8 +37,12 @@ public: DEFINE_STANDARD_ALLOC + //! Empty constructor. Standard_EXPORT Extrema_GenExtPS(); - + + //! Destructor. + Standard_EXPORT ~Extrema_GenExtPS(); + //! It calculates all the distances. //! The function F(u,v)=distance(P,S(u,v)) has an //! extremum when gradient(F)=0. The algorithm searches diff --git a/src/Extrema/Extrema_GenExtSS.cxx b/src/Extrema/Extrema_GenExtSS.cxx index e8ec2a8e04..b56eca7397 100644 --- a/src/Extrema/Extrema_GenExtSS.cxx +++ b/src/Extrema/Extrema_GenExtSS.cxx @@ -118,6 +118,15 @@ Extrema_GenExtSS::Extrema_GenExtSS() myInit = Standard_False; } +// ======================================================================= +// function : ~Extrema_GenExtSS +// purpose : +// ======================================================================= +Extrema_GenExtSS::~Extrema_GenExtSS() +{ + // +} + //======================================================================= //function : Extrema_GenExtSS //purpose : diff --git a/src/Extrema/Extrema_GenExtSS.hxx b/src/Extrema/Extrema_GenExtSS.hxx index c8fb24a06a..d02f5c2575 100644 --- a/src/Extrema/Extrema_GenExtSS.hxx +++ b/src/Extrema/Extrema_GenExtSS.hxx @@ -36,9 +36,12 @@ public: DEFINE_STANDARD_ALLOC - + //! Empty constructor. Standard_EXPORT Extrema_GenExtSS(); - + + //! Destructor. + Standard_EXPORT ~Extrema_GenExtSS(); + //! It calculates all the distances. //! The function F(u,v)=distance(S1(u1,v1),S2(u2,v2)) has an //! extremum when gradient(F)=0. The algorithm searches