]> git.saurik.com Git - wxWidgets.git/commitdiff
Work around compile problem with some versions of gcc 2.95 (Debian 3.0 and OS X 10...
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Tue, 17 May 2005 20:58:41 +0000 (20:58 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Tue, 17 May 2005 20:58:41 +0000 (20:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/rendcmn.cpp

index 2cedd7f4de8d788831a5e6a63b3692ff5b299d37..323b7b4fb0b525beebc463d458faf06946aeac69 100644 (file)
@@ -63,12 +63,7 @@ public:
     }
 
     // return the global and unique wxRendererPtr
-    static wxRendererPtr& Get()
-    {
-        static wxRendererPtr s_renderer;
-
-        return s_renderer;
-    }
+    static wxRendererPtr& Get();
 
 private:
     wxRendererPtr() : wxRendererPtrBase(NULL) { m_initialized = false; }
@@ -91,6 +86,14 @@ private:
     DECLARE_NO_COPY_CLASS(wxRendererPtr)
 };
 
+// return the global and unique wxRendererPtr
+/*static*/ wxRendererPtr& wxRendererPtr::Get()
+{
+    static wxRendererPtr s_renderer;
+
+    return s_renderer;
+}
+
 #if wxUSE_DYNLIB_CLASS
 
 // ----------------------------------------------------------------------------