added const_cast<> to silence gcc warnings (see #10520)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-03-01 11:59:50 +00:00
parent ec2f175241
commit 8e1a01e475

View File

@ -465,7 +465,7 @@ void wxToolTip::SetTip(const wxString& tip)
// for some reason, changing the tooltip text directly results in
// repaint of the controls under it, see #10520 -- but this doesn't
// happen if we reset it first
ti.lpszText = _T("");
ti.lpszText = const_cast<wxChar *>(_T(""));
(void)SendTooltipMessage(GetToolTipCtrl(), TTM_UPDATETIPTEXT, &ti);
ti.lpszText = const_cast<wxChar *>(m_text.wx_str());