]> git.saurik.com Git - wxWidgets.git/commitdiff
added the cast to wxFontMapperBase erroneously removed by the last change
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Jun 2006 11:22:24 +0000 (11:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Jun 2006 11:22:24 +0000 (11:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fmapbase.cpp

index ebc2bd3666f9742394df386c0ede9291bb50a60d..ccf7de0844d5f6b6b83fad2185f9519d0534af99 100644 (file)
@@ -325,7 +325,7 @@ void wxFontMapperBase::Reset()
         // we need a cast as wxFontMapper is not fully declared here and so the
         // compiler can't know that it derives from wxFontMapperBase (but
         // run-time behaviour will be correct because the dtor is virtual)
-        delete sm_instance;
+        delete (wxFontMapperBase *)sm_instance;
         sm_instance = NULL;
     }
 }