From: mbs Date: Fri, 2 Dec 2022 09:36:22 +0000 (+0000) Subject: renamed bool arguments X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9084b79ca05f1a735239c45b490ecfb1919edaea;p=modules%2Fshaper.git renamed bool arguments --- diff --git a/src/FeaturesAPI/FeaturesAPI_Sewing.cpp b/src/FeaturesAPI/FeaturesAPI_Sewing.cpp index 65aa60826..3fd650c6f 100644 --- a/src/FeaturesAPI/FeaturesAPI_Sewing.cpp +++ b/src/FeaturesAPI/FeaturesAPI_Sewing.cpp @@ -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& thePart, const std::list& theMainObjects, const ModelHighAPI_Double& theTolerance, - const bool theIsAllowNonManifold, - const bool theIsAlwaysCreateResult) + const bool allowNonManifold, + const bool alwaysCreateResult) { std::shared_ptr 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; } diff --git a/src/FeaturesAPI/FeaturesAPI_Sewing.h b/src/FeaturesAPI/FeaturesAPI_Sewing.h index 049294bdd..dd788721a 100644 --- a/src/FeaturesAPI/FeaturesAPI_Sewing.h +++ b/src/FeaturesAPI/FeaturesAPI_Sewing.h @@ -89,11 +89,11 @@ typedef std::shared_ptr SewingPtr; /// \ingroup CPPHighAPI /// \brief Create Sewing feature. -FEATURESAPI_EXPORT -SewingPtr addSewing(const std::shared_ptr& thePart, - const std::list& theMainObjects, - const ModelHighAPI_Double& theTolerance, - const bool theIsAllowNonManifold, - const bool theIsAlwaysCreateResult); +FEATURESAPI_EXPORT SewingPtr addSewing( + const std::shared_ptr& thePart, + const std::list& theMainObjects, + const ModelHighAPI_Double& theTolerance, + const bool allowNonManifold, + const bool alwaysCreateResult); #endif // FEATURESAPI_SEWING_H_