m_style = wxPENSTYLE_SOLID;
m_joinStyle = wxJOIN_ROUND;
m_capStyle = wxCAP_ROUND;
- m_dash = (wxDash*) NULL;
+ m_dash = NULL;
m_countDashes = 0;
int x, y, c;
wxPen::wxPen(const wxBitmap& stipple, int width)
{
- wxCHECK_RET( stipple.Ok(), _T("invalid bitmap") );
+ wxCHECK_RET( stipple.Ok(), wxT("invalid bitmap") );
wxCHECK_RET( stipple.GetWidth() == 8 && stipple.GetHeight() == 8,
- _T("stipple bitmap must be 8x8") );
+ wxT("stipple bitmap must be 8x8") );
m_refData = new wxPenRefData();
M_PENDATA->m_width = width;
void wxPen::SetStipple(const wxBitmap& stipple)
{
- wxCHECK_RET( stipple.Ok(), _T("invalid bitmap") );
+ wxCHECK_RET( stipple.Ok(), wxT("invalid bitmap") );
wxCHECK_RET( stipple.GetWidth() == 8 && stipple.GetHeight() == 8,
- _T("stipple bitmap must be 8x8") );
+ wxT("stipple bitmap must be 8x8") );
AllocExclusive();
M_PENDATA->m_stipple = stipple;
return M_PENDATA->m_width;
}
-wxColour &wxPen::GetColour() const
+wxColour wxPen::GetColour() const
{
wxCHECK_MSG( Ok(), wxNullColour, wxT("invalid pen") );