]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove C++ dynamic cast for now.
authorRobert Roebling <robert@roebling.de>
Sat, 21 Oct 2006 18:43:00 +0000 (18:43 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 21 Oct 2006 18:43:00 +0000 (18:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/graphicc.cpp

index bd612032c88669359880e783b1f7ab4ed937ef60..3b00bdecde2c2703fa24d5c9f37f4a187ea1c473 100755 (executable)
@@ -335,7 +335,7 @@ void wxCairoContext::StrokePath( const wxGraphicsPath *p )
     if ( m_penTransparent )
         return;
 
-    const wxCairoPath* path = dynamic_cast< const wxCairoPath*>( p );
+    const wxCairoPath* path = (const wxCairoPath *) p;
     cairo_path_t* cp = path->GetPath() ;
     cairo_append_path(m_context,cp);
 
@@ -524,7 +524,7 @@ void wxCairoContext::FillPath( const wxGraphicsPath *p , int fillStyle )
 {
     if ( !m_brushTransparent )
     {
-        const wxCairoPath* path = dynamic_cast< const wxCairoPath*>( p );
+        const wxCairoPath* path = (const wxCairoPath *) p;
         cairo_path_t* cp = path->GetPath() ;
         cairo_append_path(m_context,cp);