From: Carl G. <cg...@gm...> - 2005-07-07 16:38:46
|
Hi, I just fixed a problem on our local version of treelistctrl.cpp that you=20 might want to apply to the CVS version. Sun's C++ compiler (CC: Sun WorkShop 6 update 2 C++ 5.3) complains about two lines: "treelistctrl.cpp", line 2020: Error: Different types for "?:"=20 (wxTreeListItem* and wxTreeItemId).=20 "treelistctrl.cpp", line 2034: Error: Different types for "?:"=20 (wxTreeListItem* and wxTreeItemId).=20 2 Error(s) detected.=20 It's right: they are different types. I suggest these changes: return ((*pIndex)+1 < (long)children.Count())? wxTreeItemId (children.Item(++(*pIndex))): wxTreeItemId(); and return ((*pIndex)-1 >=3D 0)? wxTreeItemId (children.Item(--(*pIndex))):=20 wxTreeItemId(); All I changed was to surround the argument after the "?" with=20 wxTreeItemId(). Thanks, carl |