- else if (theFeatureID == "SketchConstraintPerpendicular") {
- return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintPerpendicular);
+ else if (theFeatureID == SKETCH_CONSTRAINT_PERPENDICULAR_KIND) {
+ return FeaturePtr(new SketchPlugin_ConstraintPerpendicular);