From kde-commits Mon May 21 17:36:43 2007 From: Christian Ehrlicher Date: Mon, 21 May 2007 17:36:43 +0000 To: kde-commits Subject: KDE/kdelibs/kdecore/kconfig_compiler Message-Id: <1179769003.761598.29779.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117976901506488 SVN commit 667046 by chehrlic: include kglobal.h instead kstaticdeleter add a small fix for msvc M +5 -2 kconfig_compiler.cpp --- trunk/KDE/kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp #667045:667046 @@ -1672,7 +1672,7 @@ // Header required by singleton implementation if ( singleton ) - cpp << "#include " << endl << "#include " << endl << endl; + cpp << "#include " << endl << "#include " << endl << endl; if ( singleton && cfgFileNameArg ) cpp << "#include " << endl << endl; @@ -1719,7 +1719,10 @@ // Singleton implementation if ( singleton ) { - cpp << "class " << className << "Helper" << endl; + if( nameSpace.isEmpty() ) + cpp << "class " << className << "Helper" << endl; + else + cpp << "class " << nameSpace << "::" << className << "Helper" << endl; cpp << '{' << endl; cpp << " public:" << endl; cpp << " " << className << "Helper() : q(0) {}" << endl;