Slightly improve the assertion failure message

Also remove the unnecessary wxT().
This commit is contained in:
Vadim Zeitlin
2018-06-30 23:10:02 +02:00
parent 0084fb94be
commit 1eee7a8a3c

View File

@@ -299,7 +299,7 @@ protected:
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
wxListBox* const list = wxDynamicCast(impl->GetWXPeer(), wxListBox);
wxCHECK_RET( list != NULL , wxT("Listbox expected"));
wxCHECK_RET( list != NULL , "Associated control should be a wxListBox" );
// Correct notification events for multiselection list, like in Carbon version
if (list->HasMultipleSelection() && !list->MacGetBlockEvents())