X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_Prop.cpp;h=91b9686700a5fff66ce0fb5b44db621294a62f6a;hb=c6a92152ecb67e86489d0a17c8df5fa2e5bcf84e;hp=7904021b62b22ec9bf520ecf554f51e3bea16900;hpb=9e396b8aa79134aac473c1dc2eb106833d594f47;p=modules%2Fshaper.git diff --git a/src/Config/Config_Prop.cpp b/src/Config/Config_Prop.cpp index 7904021b6..91b968670 100644 --- a/src/Config/Config_Prop.cpp +++ b/src/Config/Config_Prop.cpp @@ -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_Loop::loop()->send(std::shared_ptr( new Events_Message(aChangedEvent, this))); } } + +void Config_Prop::setDefaultValue(const std::string& theValue) +{ + if (theValue != myDefaultValue) { + myDefaultValue = theValue; + } +}