#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/log.h"
+ #include "wx/intl.h"
#endif //WX_PRECOMP
#include "wx/apptrait.h"
// 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
{
}
// 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; }
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
// ----------------------------------------------------------------------------