From kde-commits Mon Jun 22 12:02:30 2009 From: David Jarvie Date: Mon, 22 Jun 2009 12:02:30 +0000 To: kde-commits Subject: KDE/kdelibs/kdecore/kconfig_compiler Message-Id: <1245672150.127413.5212.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=124567215816674 SVN commit 985222 by djarvie: Fix use of uninitialised mSettingsChanged M +7 -0 kconfig_compiler.cpp --- trunk/KDE/kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp #985221:985222 @@ -1873,10 +1873,17 @@ cpp << " , mParam" << (*it).name << "(" << (*it).name << ")" << endl; } + if ( hasSignals && !dpointer ) + cpp << " , " << varName("settingsChanged") << "(0)" << endl; + cpp << "{" << endl; if (dpointer) + { cpp << " d = new " + className + "Private;" << endl; + if (hasSignals) + cpp << " " << varPath("settingsChanged") << " = 0;" << endl; + } // Needed in case the singleton class is used as baseclass for // another singleton. if (singleton) {