Salome HOME
Issue #1366: "Partition" feature now modified to "Generalized Partition"
[modules/shaper.git] / src / Config / Config_Prop.cpp
index 7904021b62b22ec9bf520ecf554f51e3bea16900..91b9686700a5fff66ce0fb5b44db621294a62f6a 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        Config_Prop.cpp
 // Created:     18 Sep 2014
 // Author:      Mikhail PONIKAROV
@@ -12,7 +14,14 @@ void Config_Prop::setValue(const std::string& theValue)
   if (theValue != myValue) {
     myValue = theValue;
     static const Events_ID aChangedEvent = Events_Loop::loop()->eventByName("PreferenceChanged");
-    Events_Loop::loop()->send(boost::shared_ptr<Events_Message>(
+    Events_Loop::loop()->send(std::shared_ptr<Events_Message>(
       new Events_Message(aChangedEvent, this)));
   }
 }
+
+void Config_Prop::setDefaultValue(const std::string& theValue)
+{
+  if (theValue != myDefaultValue) {
+    myDefaultValue = theValue;
+  }
+}