X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f20d1100cccae6c1f5edb268426be9ee4b1adc56..bf354396f61a2e1bd5544b67ecde341b6ff9bf35:/src/common/dircmn.cpp diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index 7a14d42bd9..ee6a2fffaa 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -67,7 +67,7 @@ bool wxDir::HasFiles(const wxString& spec) } // we have a (much) faster version for Unix -#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__EMX__) +#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__EMX__) || defined(__WINE__) bool wxDir::HasSubDirs(const wxString& spec) { @@ -99,7 +99,7 @@ size_t wxDir::Traverse(wxDirTraverser& sink, if ( flags & wxDIR_DIRS ) { wxString dirname; - for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | (flags & wxDIR_HIDDEN) ); + for ( bool cont = GetFirst(&dirname, wxEmptyString, wxDIR_DIRS | (flags & wxDIR_HIDDEN) ); cont; cont = cont && GetNext(&dirname) ) {