From 8e1a01e47512602faf35f7f22d94775f7f07f1c2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 1 Mar 2009 11:59:50 +0000 Subject: [PATCH] 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 --- src/msw/tooltip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 24b7818c97..8277cdfb67 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -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(_T("")); (void)SendTooltipMessage(GetToolTipCtrl(), TTM_UPDATETIPTEXT, &ti); ti.lpszText = const_cast(m_text.wx_str()); -- 2.45.2