]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fixes for SUN CC.
authorJulian Smart <julian@anthemion.co.uk>
Wed, 23 Dec 1998 12:33:45 +0000 (12:33 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 23 Dec 1998 12:33:45 +0000 (12:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectrl.cpp

index a9827f7b60aeed80892677249c2a697b208a7e46..5d1909a46ecf329daf673f934cba369a12059de9 100644 (file)
@@ -580,7 +580,7 @@ wxTreeItemId wxTreeCtrl::GetNextSibling(const wxTreeItemId& item) const
   wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent?
 
   size_t n = (size_t)(index + 1);
-  return n == siblings.Count() ? wxTreeItemId() : siblings[n];
+  return n == siblings.Count() ? wxTreeItemId() : (wxTreeItemId) siblings[n];
 }
 
 wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const
@@ -599,7 +599,7 @@ wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const
   int index = siblings.Index(i);
   wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent?
 
-  return index == 0 ? wxTreeItemId() : siblings[(size_t)(index - 1)];
+  return index == 0 ? wxTreeItemId() : (wxTreeItemId) siblings[(size_t)(index - 1)];
 }
 
 wxTreeItemId wxTreeCtrl::GetFirstVisibleItem() const