From db415ad04de40c56c244451e5275b20d32f9769d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 29 Sep 2015 00:44:08 +0200 Subject: [PATCH] Compilation fixes for C++98 compilers in D2D graphics code Don't use ">>" token in nested templates, this is not allowed in C++98 but only C++11. Also don't use "= NULL" on pure virtual functions. See #16625. --- src/msw/graphicsd2d.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index 844b385f5f..da189458a8 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -314,10 +314,10 @@ class wxD2DResourceManager; class wxD2DManagedObject { public: - virtual void Bind(wxD2DResourceManager* manager) = NULL; - virtual void UnBind() = NULL; - virtual bool IsBound() = NULL; - virtual wxD2DResourceManager* GetManager() = NULL; + virtual void Bind(wxD2DResourceManager* manager) = 0; + virtual void UnBind() = 0; + virtual bool IsBound() = 0; + virtual wxD2DResourceManager* GetManager() = 0; virtual ~wxD2DManagedObject() {}; }; @@ -2797,7 +2797,7 @@ private: // A ID2D1DrawingStateBlock represents the drawing state of a render target: // the anti aliasing mode, transform, tags, and text-rendering options. // The context owns these pointers and is responsible for releasing them. - wxStack> m_stateStack; + wxStack > m_stateStack; ClipMode m_clipMode; @@ -2806,7 +2806,7 @@ private: // A direct2d layer is a device-dependent resource. wxCOMPtr m_clipLayer; - wxStack> m_layers; + wxStack > m_layers; ID2D1RenderTarget* m_cachedRenderTarget;