]> git.saurik.com Git - wxWidgets.git/commitdiff
Use 0 instead of NULL to avoid g++ warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Aug 2011 19:31:52 +0000 (19:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Aug 2011 19:31:52 +0000 (19:31 +0000)
g++ (usefully) warns when assigning NULL to a non-pointer in wxGDIPlusRenderer.

Just use 0 instead of NULL to avoid the warning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/graphics.cpp

index c1c7df147cc1adfd6bb584fa2b643db14a193975..0bc82261429a7cdab52ba449caaf42f27fd19495 100644 (file)
@@ -1906,7 +1906,7 @@ void wxGDIPlusRenderer::Unload()
     if ( m_gditoken )
     {
         GdiplusShutdown(m_gditoken);
-        m_gditoken = NULL;
+        m_gditoken = 0;
     }
     m_loaded = -1; // next Load() will try again
 }