From: akaftasev Date: Thu, 6 May 2021 11:50:09 +0000 (+0300) Subject: Adding method Perform() without theRange X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=70edfb531b0149aa32a4add1e1ceeadacd438ebd;p=occt-copy.git Adding method Perform() without theRange --- diff --git a/src/BOPAlgo/BOPAlgo_Algo.hxx b/src/BOPAlgo/BOPAlgo_Algo.hxx index 42920ef589..029bb00e24 100644 --- a/src/BOPAlgo/BOPAlgo_Algo.hxx +++ b/src/BOPAlgo/BOPAlgo_Algo.hxx @@ -33,7 +33,9 @@ public: DEFINE_STANDARD_ALLOC - Standard_EXPORT virtual void Perform(const Message_ProgressRange& theRange = Message_ProgressRange()) = 0; + Standard_EXPORT virtual void Perform(const Message_ProgressRange& /*theRange*/ = Message_ProgressRange()) {}; + + Standard_EXPORT virtual void Perform() {}; protected: diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx index 8416cc3374..dd8040749a 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_2.cxx @@ -114,7 +114,7 @@ class BOPAlgo_VertexEdge : public BOPAlgo_Algo { myRange = theRange; } // - virtual void Perform(const Message_ProgressRange& /*theRange*/ = Message_ProgressRange()) { + virtual void Perform() { Message_ProgressScope aPS(myRange, NULL, 1); if (UserBreak(aPS)) { diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx index e9681f4849..1cefdbf7f6 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_3.cxx @@ -106,7 +106,7 @@ class BOPAlgo_EdgeEdge : myRange = theRange; } // - virtual void Perform(const Message_ProgressRange& /*theRange*/ = Message_ProgressRange()) { + virtual void Perform() { Message_ProgressScope aPS(myRange, NULL, 1); if (UserBreak(aPS)) { diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_4.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_4.cxx index 5e7abe6711..75114203a7 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_4.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_4.cxx @@ -111,7 +111,7 @@ class BOPAlgo_VertexFace : public BOPAlgo_Algo { myRange = theRange; } // - virtual void Perform(const Message_ProgressRange& /*theRange*/ = Message_ProgressRange()) { + virtual void Perform() { Message_ProgressScope aPS(myRange, NULL, 1); if (UserBreak(aPS)) { diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx index 03f3580828..abda6a57b0 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_5.cxx @@ -117,7 +117,7 @@ class BOPAlgo_EdgeFace : myRange = theRange; } // - virtual void Perform(const Message_ProgressRange& /*theRange*/ = Message_ProgressRange()) { + virtual void Perform() { Message_ProgressScope aPS(myRange, NULL, 1); if (UserBreak(aPS)) { diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx index 922b228f03..1e82fedebc 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx @@ -157,7 +157,7 @@ class BOPAlgo_FaceFace : // const gp_Trsf& Trsf() const { return myTrsf; } // - virtual void Perform(const Message_ProgressRange& /*theRange*/ = Message_ProgressRange()) { + virtual void Perform() { Message_ProgressScope aPS(myRange, NULL, 1); if (UserBreak(aPS)) { diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx index 1e3934a668..2400febd33 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx @@ -143,7 +143,7 @@ class BOPAlgo_SplitEdge : public BOPAlgo_Algo { myRange = theRange; } // - virtual void Perform (const Message_ProgressRange& /*theRange*/ = Message_ProgressRange()) { + virtual void Perform () { Message_ProgressScope aPS(myRange, NULL, 1); if (UserBreak(aPS)) { @@ -248,7 +248,7 @@ class BOPAlgo_MPC : public BOPAlgo_Algo { myRange = theRange; } // - virtual void Perform(const Message_ProgressRange& /*theRange*/ = Message_ProgressRange()) { + virtual void Perform() { Message_ProgressScope aPS(myRange, NULL, 1); if (UserBreak(aPS)) {