X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8138f406a26d9bbbb3d841af84af85d1d8cb5ea1..3d9bff2f13c7fe6a61b99de92c8283dcbb59b147:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 90edb491b3..0e1f8926d0 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -785,7 +785,7 @@ bool wxNotebook::InsertPage(size_t nPage, if ( !strText.empty() ) { tcItem.mask |= TCIF_TEXT; - tcItem.pszText = (wxChar *)strText.wx_str(); // const_cast + tcItem.pszText = const_cast(strText.wx_str()); } // hide the page: unless it is selected, it shouldn't be shown (and if it