From 15a5235ef788975e3c874164003425d42bc4ab30 Mon Sep 17 00:00:00 2001 From: mishas Date: Thu, 20 Sep 2007 13:33:19 +0000 Subject: [PATCH] initialize myValue for GConfBooleanOption and GConfIntegerOption as there are no default constructors for them :) git-svn-id: file:///svnroot/simple-launcher/trunk@224 3ba93dab-e023-0410-b42a-de7732cf370a --- gconf-wrapper.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gconf-wrapper.cc b/gconf-wrapper.cc index 8ad3dda..44bd35e 100644 --- a/gconf-wrapper.cc +++ b/gconf-wrapper.cc @@ -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) { } -- 1.7.9.5