initialize myValue for GConfBooleanOption and GConfIntegerOption as there are no...
authormishas <mikhail.sobolev@gmail.com>
Thu, 20 Sep 2007 13:33:19 +0000 (13:33 +0000)
committermishas <mikhail.sobolev@gmail.com>
Thu, 20 Sep 2007 13:33:19 +0000 (13:33 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@224 3ba93dab-e023-0410-b42a-de7732cf370a

gconf-wrapper.cc

index 8ad3dda..44bd35e 100644 (file)
@@ -141,6 +141,7 @@ const std::string& GConfStringOption::setValue(const std::string& newValue) {
 
 GConfBooleanOption::GConfBooleanOption(const GConfKey& key, const std::string& name, bool defaultValue):
   GConfOption(key, name),
+  myValue(defaultValue),
   myDefaultValue(defaultValue) {
 }
 
@@ -186,6 +187,7 @@ bool GConfBooleanOption::setValue(bool newValue) {
 
 GConfIntegerOption::GConfIntegerOption(const GConfKey& key, const std::string& name, int defaultValue):
   GConfOption(key, name),
+  myValue(defaultValue),
   myDefaultValue(defaultValue) {
 }