]> git.saurik.com Git - wxWidgets.git/commitdiff
added const_cast<> to silence gcc warnings (see #10520)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 1 Mar 2009 11:59:50 +0000 (11:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 1 Mar 2009 11:59:50 +0000 (11:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tooltip.cpp

index 24b7818c9791e67adf532baff911a395313199c7..8277cdfb67137eb63b31c944880edca8f1e4d3dd 100644 (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());