From: Vadim Zeitlin Date: Fri, 6 Apr 2007 21:38:05 +0000 (+0000) Subject: compilation fix: don't try to convert wxString to bool, use empty() instead X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/316ef03b27e404531017773cf3ab0fd1aaec7fb4?ds=inline compilation fix: don't try to convert wxString to bool, use empty() instead git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 32295957b9..f18d924fdb 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -1430,7 +1430,7 @@ static wxString GetGtkHotKey( const wxMenuItem& item ) if ( code < 127 ) { wxString name = wxGTK_CONV_BACK( gdk_keyval_name((guint)code) ); - if ( name ) + if ( !name.empty() ) { hotkey << name; break;