]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove bad casts
authorJulian Smart <julian@anthemion.co.uk>
Sat, 13 Dec 2003 20:32:41 +0000 (20:32 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 13 Dec 2003 20:32:41 +0000 (20:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp
src/msw/treectrl.cpp

index 3ee328dff5d0b31d65bd0c9d447148163948d580..99d64a87f387e7e41c86ae16bb137e37c841e3c2 100644 (file)
@@ -2866,7 +2866,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
     {
         // Ask the tree control what tooltip (if any) should be shown
         wxTreeEvent hevent(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, GetId());
-        hevent.m_item = (long) hoverItem;
+        hevent.m_item = hoverItem;
         hevent.SetEventObject(this);
 
         if ( GetEventHandler()->ProcessEvent(hevent) && hevent.IsAllowed() )
index a7c06e728e49e0f53c774d17d0d23ad730428a7c..862196ca69509d0d71e94fbfaf34162b13fc5b91 100644 (file)
@@ -2480,7 +2480,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                 NMTVGETINFOTIP *info = (NMTVGETINFOTIP*)lParam;
 
                 // Which item are we trying to get a tooltip for?
-                event.m_item = (WXHTREEITEM) info->hItem;
+                event.m_item = info->hItem;
 
                 break;
             }