]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Set focus to generic wxDataViewCtrl when clicking with any mouse button, not just...
[wxWidgets.git] / src / msw / notebook.cpp
index 90edb491b32dc46aed78e90d581380229525e52f..0e1f8926d0b8fbbad52affff0a853cb297375cdd 100644 (file)
@@ -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<wxChar *>(strText.wx_str());
     }
 
     // hide the page: unless it is selected, it shouldn't be shown (and if it