X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c720ce63366f2679ea04701f2e15a876c3a5d08..bfec7058d4c9f8d41c38ce1ddcbc2670548cf5c2:/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 // ----------------------------------------------------------------------------