]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/rendcmn.cpp
implementing pure carbon event behaviour, getting rid of doubly executed events
[wxWidgets.git] / src / common / rendcmn.cpp
index b97c769e7fc614e3008d084552ab0fb3e5b61686..572600a9bdfea58890ffbdc5fab99426e4cf1225 100644 (file)
@@ -25,6 +25,8 @@
 
 #ifndef WX_PRECOMP
     #include "wx/app.h"
+    #include "wx/log.h"
+    #include "wx/intl.h"
 #endif //WX_PRECOMP
 
 #include "wx/apptrait.h"
@@ -40,8 +42,8 @@
 // wxRendererPtr: auto pointer holding the global renderer
 // ----------------------------------------------------------------------------
 
-wxDECLARE_SCOPED_PTR(wxRendererNative, wxRendererPtrBase);
-wxDEFINE_SCOPED_PTR(wxRendererNative, wxRendererPtrBase);
+wxDECLARE_SCOPED_PTR(wxRendererNative, wxRendererPtrBase)
+wxDEFINE_SCOPED_PTR(wxRendererNative, wxRendererPtrBase)
 
 class wxRendererPtr : public wxRendererPtrBase
 {
@@ -61,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; }
@@ -89,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
 
 // ----------------------------------------------------------------------------