]> OCCT Git - occt-copy.git/commitdiff
Fixes in BOPAlgo_Options
authorakaftasev <akaftasev@opencascade.com>
Tue, 27 Apr 2021 13:54:22 +0000 (16:54 +0300)
committerakaftasev <akaftasev@opencascade.com>
Tue, 27 Apr 2021 13:54:22 +0000 (16:54 +0300)
src/BOPAlgo/BOPAlgo_Options.cxx
src/BOPAlgo/BOPAlgo_Options.hxx

index 7dbc488c1f74e53281056c29ee1fe017ca47825c..7ff5d35b07dbbe991504b96cf7110b8a2b134a0f 100644 (file)
@@ -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;
 }
 
index 9831351e99a4c2379e4d97dab868c96d1714d247..2805d4cbea0299766112cfad50f979e24fb93757 100644 (file)
@@ -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: