]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
renamed bool arguments
authormbs <martin.bernhard@opencascade.com>
Fri, 2 Dec 2022 09:36:22 +0000 (09:36 +0000)
committermbs <martin.bernhard@opencascade.com>
Fri, 2 Dec 2022 09:36:22 +0000 (09:36 +0000)
src/FeaturesAPI/FeaturesAPI_Sewing.cpp
src/FeaturesAPI/FeaturesAPI_Sewing.h

index 65aa60826320396be80bc71b50ed737b45075690..3fd650c6f97722bec200f60d7dfea5c820a35010 100644 (file)
@@ -93,10 +93,10 @@ void FeaturesAPI_Sewing::dump(ModelHighAPI_Dumper& theDumper) const
   theDumper << ", " << anAttrTolerance;
 
   AttributeBooleanPtr anAttrAllowNonMFold = aBase->boolean(FeaturesPlugin_Sewing::ALLOW_NON_MANIFOLD_ID());
-  theDumper << ", " << anAttrAllowNonMFold;
+  theDumper << ", allowNonManifold = " << anAttrAllowNonMFold;
 
   AttributeBooleanPtr anAttrAlwaysResult = aBase->boolean(FeaturesPlugin_Sewing::ALWAYS_CREATE_RESULT_ID());
-  theDumper << ", " << anAttrAlwaysResult;
+  theDumper << ", alwaysCreateResult = " << anAttrAlwaysResult;
 
   theDumper << ")" << std::endl;
 }
@@ -105,11 +105,11 @@ void FeaturesAPI_Sewing::dump(ModelHighAPI_Dumper& theDumper) const
 SewingPtr addSewing(const std::shared_ptr<ModelAPI_Document>& thePart,
                     const std::list<ModelHighAPI_Selection>& theMainObjects,
                     const ModelHighAPI_Double& theTolerance,
-                    const bool theIsAllowNonManifold,
-                    const bool theIsAlwaysCreateResult)
+                    const bool allowNonManifold,
+                    const bool alwaysCreateResult)
 {
   std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(FeaturesAPI_Sewing::ID());
   SewingPtr aSewing;
-  aSewing.reset(new FeaturesAPI_Sewing(aFeature, theMainObjects, theTolerance, theIsAllowNonManifold, theIsAlwaysCreateResult));
+  aSewing.reset(new FeaturesAPI_Sewing(aFeature, theMainObjects, theTolerance, allowNonManifold, alwaysCreateResult));
   return aSewing;
 }
index 049294bdd709e7b6106a8310d130aa801214412d..dd788721a23ef7af4455de0176ddd62bea0b6484 100644 (file)
@@ -89,11 +89,11 @@ typedef std::shared_ptr<FeaturesAPI_Sewing> SewingPtr;
 
 /// \ingroup CPPHighAPI
 /// \brief Create Sewing feature.
-FEATURESAPI_EXPORT
-SewingPtr addSewing(const std::shared_ptr<ModelAPI_Document>& thePart,
-                    const std::list<ModelHighAPI_Selection>& theMainObjects,
-                    const ModelHighAPI_Double& theTolerance,
-                    const bool theIsAllowNonManifold,
-                    const bool theIsAlwaysCreateResult);
+FEATURESAPI_EXPORT SewingPtr addSewing(
+    const std::shared_ptr<ModelAPI_Document>& thePart,
+    const std::list<ModelHighAPI_Selection>& theMainObjects,
+    const ModelHighAPI_Double& theTolerance,
+    const bool allowNonManifold,
+    const bool alwaysCreateResult);
 
 #endif // FEATURESAPI_SEWING_H_