Used wxConstCast where needed, fixed other compile errors, and removed TABs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-23 19:23:31 +00:00
parent e49c065dc3
commit cd5adaa649

View File

@@ -166,7 +166,7 @@ wxCairoPath::~wxCairoPath()
cairo_destroy(m_pathContext); cairo_destroy(m_pathContext);
} }
cairo_path_t* wxCairoPath::GetNativePath() const void* wxCairoPath::GetNativePath() const
{ {
return cairo_copy_path(m_pathContext) ; return cairo_copy_path(m_pathContext) ;
} }
@@ -526,7 +526,7 @@ void wxCairoContext::StrokePath( const wxGraphicsPath *path )
if ( userLengths ) if ( userLengths )
delete[] userLengths; delete[] userLengths;
cairo_stroke(m_context); cairo_stroke(m_context);
path->UnGetNativePath(cp); wxConstCast(path, wxGraphicsPath)->UnGetNativePath(cp);
} }
void wxCairoContext::FillPath( const wxGraphicsPath *path , int fillStyle ) void wxCairoContext::FillPath( const wxGraphicsPath *path , int fillStyle )
@@ -550,7 +550,7 @@ void wxCairoContext::FillPath( const wxGraphicsPath *path , int fillStyle )
cairo_set_fill_rule(m_context,fillStyle==wxODDEVEN_RULE ? CAIRO_FILL_RULE_EVEN_ODD : CAIRO_FILL_RULE_WINDING); cairo_set_fill_rule(m_context,fillStyle==wxODDEVEN_RULE ? CAIRO_FILL_RULE_EVEN_ODD : CAIRO_FILL_RULE_WINDING);
cairo_fill(m_context); cairo_fill(m_context);
path->UnGetNativePath(cp); wxConstCast(path, wxGraphicsPath)->UnGetNativePath(cp);
} }
} }