]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2027 Sketcher Trim Feature: split shapes by highlighted point is moved from...
authornds <nds@opencascade.com>
Thu, 9 Mar 2017 15:10:35 +0000 (18:10 +0300)
committernds <nds@opencascade.com>
Thu, 9 Mar 2017 15:10:35 +0000 (18:10 +0300)
Correction for Jenkins(function argument).

src/SketchPlugin/SketchPlugin_Trim.cpp
src/SketchPlugin/SketchPlugin_Trim.h

index 6c778e514a200b77a8c7364714ed84c1067058cd..d8663ee549c2ddb92c53166913ce2ee3b36d1d2a 100644 (file)
@@ -240,7 +240,8 @@ void SketchPlugin_Trim::execute()
     const std::list<ObjectPtr>& anObjects = anInfo.second;
     for (std::list<ObjectPtr>::const_iterator anObjectIt = anObjects.begin();
       anObjectIt != anObjects.end(); anObjectIt++) {
-      createConstraint(SketchPlugin_ConstraintCoincidence::ID(), aPointAttribute, *anObjectIt);
+      createConstraintToObject(SketchPlugin_ConstraintCoincidence::ID(), aPointAttribute,
+                               *anObjectIt);
     }
   }
 
@@ -925,7 +926,7 @@ FeaturePtr SketchPlugin_Trim::createConstraint(const std::string& theConstraintI
   return aConstraint;
 }
 
-FeaturePtr SketchPlugin_Trim::createConstraint(const std::string& theConstraintId,
+FeaturePtr SketchPlugin_Trim::createConstraintToObject(const std::string& theConstraintId,
                                                const AttributePtr& theFirstAttribute,
                                                const ObjectPtr& theSecondObject)
 {
index 70bffe0a827a6d02a5e0aed7f4ce1d81157954ea..b31503128f1366928222ff8575fadc042ab42180 100644 (file)
@@ -225,7 +225,7 @@ private:
   /// \param theConstraintId a constraint index
   /// \param theFirstAttribute an attribute of further coincidence
   /// \param theSecondObject an object of further coincidence
-  std::shared_ptr<ModelAPI_Feature> createConstraint(const std::string& theConstraintId,
+  std::shared_ptr<ModelAPI_Feature> createConstraintToObject(const std::string& theConstraintId,
                         const std::shared_ptr<ModelAPI_Attribute>& theFirstAttribute,
                         const std::shared_ptr<ModelAPI_Object>& theSecondObject);