From 316ef03b27e404531017773cf3ab0fd1aaec7fb4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 6 Apr 2007 21:38:05 +0000 Subject: [PATCH] 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 --- src/gtk1/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2