Compilation fixes for !WXWIN_COMPATIBILITY_2_4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -38,6 +38,7 @@ typedef void *wxTreeItemIdValue;
|
||||
|
||||
class WXDLLEXPORT wxTreeItemId
|
||||
{
|
||||
friend bool operator==(const wxTreeItemId&, const wxTreeItemId&);
|
||||
public:
|
||||
// ctors
|
||||
// 0 is invalid value for HTREEITEM
|
||||
@@ -63,8 +64,16 @@ public:
|
||||
#endif // WXWIN_COMPATIBILITY_2_4
|
||||
|
||||
wxTreeItemIdValue m_pItem;
|
||||
bool operator!() const { return !IsOk(); }
|
||||
operator bool() const { return IsOk(); }
|
||||
|
||||
};
|
||||
|
||||
inline bool operator==(const wxTreeItemId& i1, const wxTreeItemId& i2)
|
||||
{
|
||||
return i1.m_pItem == i2.m_pItem;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTreeItemData is some (arbitrary) user class associated with some item. The
|
||||
// main advantage of having this class (compared to old untyped interface) is
|
||||
|
Reference in New Issue
Block a user