Salome HOME
Issue #2112 performance for partition
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Plugin.cpp
index c4d50434636509f50168f7a0aef153dd3e96e73b..9794e3a389b5c193fc5310a537a9d1d17f106789 100644 (file)
@@ -14,8 +14,6 @@
 #include <iostream>
 #endif
 
-using namespace std;
-
 // the only created instance of this plugin
 static PartSetPlugin_Plugin* MY_PARTSET_INSTANCE = new PartSetPlugin_Plugin();
 
@@ -25,7 +23,7 @@ PartSetPlugin_Plugin::PartSetPlugin_Plugin()
   ModelAPI_Session::get()->registerPlugin(this);
 }
 
-FeaturePtr PartSetPlugin_Plugin::createFeature(string theFeatureID)
+FeaturePtr PartSetPlugin_Plugin::createFeature(std::string theFeatureID)
 {
   if (theFeatureID == PartSetPlugin_Part::ID()) {
     return FeaturePtr(new PartSetPlugin_Part);
@@ -58,8 +56,8 @@ std::shared_ptr<ModelAPI_FeatureStateMessage> PartSetPlugin_Plugin::getFeaturesS
 {
   const Events_ID kResponseEvent =
         Events_Loop::loop()->eventByName(EVENT_FEATURE_STATE_RESPONSE);
-  std::shared_ptr<ModelAPI_FeatureStateMessage> aMsg =
-      std::make_shared<ModelAPI_FeatureStateMessage>(kResponseEvent, this);
+  std::shared_ptr<ModelAPI_FeatureStateMessage> aMsg(
+      new ModelAPI_FeatureStateMessage(kResponseEvent, this));
   std::string aStdDocKind = ModelAPI_Session::get()->activeDocument()->kind();
   bool aDocIsPart = (aStdDocKind == PartSetPlugin_Part::ID());
   aMsg->setState(PartSetPlugin_Part::ID(), true);