X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bc3ec1ff5384eab3f8fb5b3a0ca7f7887889813..7615dee740c7141e532e19cb861f3bcc0757db2a:/include/wx/listbase.h diff --git a/include/wx/listbase.h b/include/wx/listbase.h index 97a3555fae..597bc3eb50 100644 --- a/include/wx/listbase.h +++ b/include/wx/listbase.h @@ -16,6 +16,8 @@ // #pragma interface "listctrlbase.h" #endif +#include "wx/defs.h" + #if wxUSE_LISTCTRL #include "wx/colour.h" @@ -371,7 +373,7 @@ public: const wxString& GetLabel() const { return m_item.m_text; } const wxString& GetText() const { return m_item.m_text; } int GetImage() const { return m_item.m_image; } - long GetData() const { return m_item.m_data; } + long GetData() const { return wx_static_cast(long, m_item.m_data); } long GetMask() const { return m_item.m_mask; } const wxListItem& GetItem() const { return m_item; }