Salome HOME
It replaces direct names of constraints to the specific kind.
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintDistance.h
index 9e9874400a39f365e57059d7440e08049126a6b9..1a90e2dd3c5516c3cb585036c0b284d3d074c2cb 100644 (file)
@@ -10,6 +10,8 @@
 #include <SketchPlugin_Sketch.h>
 #include <list>
 
+/// Distance constraint kind
+const std::string SKETCH_CONSTRAINT_DISTANCE_KIND("SketchConstraintDistance");
 
 /** \class SketchPlugin_ConstraintDistance
  *  \ingroup DataModel
@@ -24,7 +26,7 @@ class SketchPlugin_ConstraintDistance: public SketchPlugin_Constraint
 public:
   /// \brief Returns the kind of a feature
   SKETCHPLUGIN_EXPORT virtual const std::string& getKind() 
-  {static std::string MY_KIND = "SketchConstraintDistance"; return MY_KIND;}
+  {static std::string MY_KIND = SKETCH_CONSTRAINT_DISTANCE_KIND; return MY_KIND;}
 
   /// \brief Returns to which group in the document must be added feature
   SKETCHPLUGIN_EXPORT virtual const std::string& getGroup()