From 1eee7a8a3c414c6b9dda291f37f611c4d2e2aaf4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Jun 2018 23:10:02 +0200 Subject: [PATCH] Slightly improve the assertion failure message Also remove the unnecessary wxT(). --- src/osx/cocoa/listbox.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index 7e0b32cd7e..1fe0d48499 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -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())