Salome HOME
It replaces using of direct value "Sketch" to SKETCH_KIND, which is defined in the...
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Plugin.cpp
index 23a6cf05a17cc3fb364a10d7f616943df9d71c6b..be1c3f581aacc784beb6593d418fadef19019a4f 100644 (file)
@@ -26,7 +26,7 @@ SketchPlugin_Plugin::SketchPlugin_Plugin()
 
 boost::shared_ptr<ModelAPI_Feature> SketchPlugin_Plugin::createFeature(string theFeatureID)
 {
-  if (theFeatureID == "Sketch") {
+  if (theFeatureID == SKETCH_KIND) {
     return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_Sketch);
   }
   else if (theFeatureID == "SketchPoint") {