X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c71d3313a42a8fdc6efd6a0c49ad13def665ef2f..072c5412c2f89e31255ba06d55f25c743b7bc15a:/include/wx/selstore.h diff --git a/include/wx/selstore.h b/include/wx/selstore.h index a248597988..5c7ffd1863 100644 --- a/include/wx/selstore.h +++ b/include/wx/selstore.h @@ -18,11 +18,14 @@ // wxSelectedIndices is just a sorted array of indices // ---------------------------------------------------------------------------- -inline int CMPFUNC_CONV wxSizeTCmpFn(size_t n1, size_t n2) { return n1 - n2; } +inline int CMPFUNC_CONV wxSizeTCmpFn(size_t n1, size_t n2) +{ + return (int)(n1 - n2); +} -WX_DEFINE_SORTED_EXPORTED_ARRAY_CMP_LONG(size_t, - wxSizeTCmpFn, - wxSelectedIndices); +WX_DEFINE_SORTED_EXPORTED_ARRAY_CMP_SIZE_T(size_t, + wxSizeTCmpFn, + wxSelectedIndices); // ---------------------------------------------------------------------------- // wxSelectionStore is used to store the selected items in the virtual @@ -48,7 +51,7 @@ public: void Clear() { m_itemsSel.Clear(); m_count = 0; m_defaultState = FALSE; } // must be called when a new item is inserted/added - void OnItemAdd(size_t item) { wxFAIL_MSG( _T("TODO") ); } + void OnItemAdd(size_t WXUNUSED(item)) { wxFAIL_MSG( _T("TODO") ); } // must be called when an item is deleted void OnItemDelete(size_t item);