Compilation fixes for SUN CC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -580,7 +580,7 @@ wxTreeItemId wxTreeCtrl::GetNextSibling(const wxTreeItemId& item) const
|
|||||||
wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent?
|
wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent?
|
||||||
|
|
||||||
size_t n = (size_t)(index + 1);
|
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
|
wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const
|
||||||
@@ -599,7 +599,7 @@ wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const
|
|||||||
int index = siblings.Index(i);
|
int index = siblings.Index(i);
|
||||||
wxASSERT( index != NOT_FOUND ); // I'm not a child of my parent?
|
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
|
wxTreeItemId wxTreeCtrl::GetFirstVisibleItem() const
|
||||||
|
Reference in New Issue
Block a user