X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c720ce63366f2679ea04701f2e15a876c3a5d08..11c084163e3702692586f70a9414dca97bb2a2d6:/src/common/ctrlsub.cpp diff --git a/src/common/ctrlsub.cpp b/src/common/ctrlsub.cpp index 67e8a80333..975812f8d4 100644 --- a/src/common/ctrlsub.cpp +++ b/src/common/ctrlsub.cpp @@ -70,6 +70,25 @@ void wxItemContainer::Append(const wxArrayString& strings) } } +int wxItemContainer::Insert(const wxString& item, int pos, void *clientData) +{ + int n = DoInsert(item, pos); + if ( n != wxNOT_FOUND ) + SetClientData(n, clientData); + + return n; +} + +int +wxItemContainer::Insert(const wxString& item, int pos, wxClientData *clientData) +{ + int n = DoInsert(item, pos); + if ( n != wxNOT_FOUND ) + SetClientObject(n, clientData); + + return n; +} + // ---------------------------------------------------------------------------- // client data // ----------------------------------------------------------------------------