From 85aa6abe59d139affb76edfb96dfe253cb885bc3 Mon Sep 17 00:00:00 2001 From: akaftasev Date: Tue, 27 Apr 2021 16:54:22 +0300 Subject: [PATCH] Fixes in BOPAlgo_Options --- src/BOPAlgo/BOPAlgo_Options.cxx | 9 +++------ src/BOPAlgo/BOPAlgo_Options.hxx | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) 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: -- 2.39.5