void wxLineShape::OnErase(wxDC& dc)
{
- wxPen *old_pen = m_pen;
+ const wxPen *old_pen = m_pen;
const wxBrush *old_brush = m_brush;
wxPen bg_pen = GetBackgroundPen();
wxBrush bg_brush = GetBackgroundBrush();
void wxLineShape::OnDrawOutline(wxDC& dc, double WXUNUSED(x), double WXUNUSED(y), double WXUNUSED(w), double WXUNUSED(h))
{
- wxPen *old_pen = m_pen;
+ const wxPen *old_pen = m_pen;
const wxBrush *old_brush = m_brush;
wxPen dottedPen(*wxBLACK, 1, wxDOT);
wxLineShape *lineShape = (wxLineShape *)this;
- wxPen *old_pen = lineShape->GetPen();
+ const wxPen *old_pen = lineShape->GetPen();
const wxBrush *old_brush = lineShape->GetBrush();
wxPen dottedPen(*wxBLACK, 1, wxDOT);
lpt->m_xpos = x; lpt->m_ypos = y;
lpt->m_point->x = x; lpt->m_point->y = y;
- wxPen *old_pen = lineShape->GetPen();
+ const wxPen *old_pen = lineShape->GetPen();
const wxBrush *old_brush = lineShape->GetBrush();
wxPen dottedPen(*wxBLACK, 1, wxDOT);