]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix: test correctly for filter string not being empty in MakeUserDataRec
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Apr 2007 21:23:52 +0000 (21:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Apr 2007 21:23:52 +0000 (21:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/filedlg.cpp

index 1eee666aaeb601402c95bf12d7e3be33a600fc80..e3a810a5055b89581b285bb559eaffecd3d6b701 100644 (file)
@@ -126,7 +126,7 @@ void MakeUserDataRec(OpenUserDataRec *myData , const wxString& filter )
     myData->currentfilter = 0 ;
     myData->saveMode = false ;
 
-    if ( filter && filter[0] )
+    if ( !filter.empty() )
     {
         wxString filter2(filter) ;
         int filterIndex = 0;