From 8df589bebca135bd9ba0c7c65c9aba052e2dd637 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 31 Aug 2011 10:32:41 +0200 Subject: Make QLocale not depend on being friends with the global static Don't assume that the global static is a function. Instead, create a class that is friends. Change-Id: I992f4d819b367899b19d95b4983e6b243f0ed932 Reviewed-by: Lars Knoll --- src/corelib/tools/qlocale_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/tools/qlocale_p.h') diff --git a/src/corelib/tools/qlocale_p.h b/src/corelib/tools/qlocale_p.h index ad7c9706c4..377a60881f 100644 --- a/src/corelib/tools/qlocale_p.h +++ b/src/corelib/tools/qlocale_p.h @@ -122,7 +122,7 @@ public: private: QSystemLocale(bool); - friend QSystemLocale *QSystemLocale_globalSystemLocale(); + friend class QSystemLocaleSingleton; }; #endif -- cgit v1.2.3