From: akaftasev Date: Tue, 27 Apr 2021 13:54:22 +0000 (+0300) Subject: Fixes in BOPAlgo_Options X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=85aa6abe59d139affb76edfb96dfe253cb885bc3;p=occt-copy.git Fixes in BOPAlgo_Options --- diff --git a/src/BOPAlgo/BOPAlgo_Options.cxx b/src/BOPAlgo/BOPAlgo_Options.cxx index 7dbc488c1f..7ff5d35b07 100644 --- a/src/BOPAlgo/BOPAlgo_Options.cxx +++ b/src/BOPAlgo/BOPAlgo_Options.cxx @@ -128,16 +128,13 @@ void BOPAlgo_Options::SetFuzzyValue(const Standard_Real theFuzz) myFuzzyValue = Max(theFuzz, Precision::Confusion()); } -Standard_EXPORT Standard_Boolean BOPAlgo_Options::UserBreak(const Message_ProgressScope& aPS) +Standard_Boolean BOPAlgo_Options::UserBreak(const Message_ProgressScope& thePS) { - if (aPS.UserBreak()) + if (thePS.UserBreak()) { AddError(new BOPAlgo_AlertUserBreak); return Standard_True; } - else - { - return Standard_False; - } + return Standard_False; } diff --git a/src/BOPAlgo/BOPAlgo_Options.hxx b/src/BOPAlgo/BOPAlgo_Options.hxx index 9831351e99..2805d4cbea 100644 --- a/src/BOPAlgo/BOPAlgo_Options.hxx +++ b/src/BOPAlgo/BOPAlgo_Options.hxx @@ -167,8 +167,8 @@ public: protected: - //! Return true if the break signal and add error to myReport - Standard_EXPORT Standard_Boolean UserBreak(const Message_ProgressScope& aPS); + //! Adds error to the report if the break signal was caught. Returns true in this case, false otherwise. + Standard_EXPORT Standard_Boolean UserBreak(const Message_ProgressScope& thePS); protected: