Fix namespace issue with the global static
authormae <qt-info@nokia.com>
Mon, 2 May 2011 10:45:43 +0000 (12:45 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Tue, 10 May 2011 10:54:53 +0000 (12:54 +0200)
(cherry picked from commit c99be6bf73dce10fc706764b72a8dacc1c6589a0)

src/corelib/kernel/qcoreapplication.cpp

index afbcff3..902902f 100644 (file)
@@ -274,11 +274,11 @@ Q_CORE_EXPORT bool qt_locale_initialized = false;
   Create an instance of Trolltech.conf. This ensures that the settings will not
   be thrown out of QSetting's cache for unused settings.
   */
-Q_GLOBAL_STATIC_WITH_ARGS(QSettings, trolltechConf, (QSettings::UserScope, QLatin1String("Trolltech")))
+Q_GLOBAL_STATIC_WITH_ARGS(QSettings, staticTrolltechConf, (QSettings::UserScope, QLatin1String("Trolltech")))
 
 QSettings *QCoreApplicationPrivate::trolltechConf()
 {
-    return ::trolltechConf();
+    return staticTrolltechConf();
 }
 
 Q_CORE_EXPORT uint qGlobalPostedEventsCount()