X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..0425151023593cb31da0ee0a652da173ca9abfde:/src/mac/stattext.cpp diff --git a/src/mac/stattext.cpp b/src/mac/stattext.cpp index fc0a5726f9..b2a7d103da 100644 --- a/src/mac/stattext.cpp +++ b/src/mac/stattext.cpp @@ -59,7 +59,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, return ret; } -const wxString punct = " ,.-;:!?"; +const wxString punct = wxT(" ,.-;:!?"); void wxStaticText::DrawParagraph(wxDC &dc, wxString paragraph, int &y) { @@ -68,7 +68,7 @@ void wxStaticText::DrawParagraph(wxDC &dc, wxString paragraph, int &y) if (paragraph.Length() == 0) { // empty line - dc.GetTextExtent( "H", &width, &height ); + dc.GetTextExtent( wxT("H"), &width, &height ); y += height; return; @@ -127,7 +127,7 @@ void wxStaticText::DrawParagraph(wxDC &dc, wxString paragraph, int &y) } dc.DrawText( paragraph, pos , y) ; - paragraph=""; + paragraph=wxEmptyString; y += height ; } } @@ -165,7 +165,7 @@ void wxStaticText::OnDraw( wxDC &dc ) if (text[i] == 13 || text[i] == 10) { DrawParagraph(dc, paragraph,y); - paragraph = "" ; + paragraph = wxEmptyString ; } else {