X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f20d1100cccae6c1f5edb268426be9ee4b1adc56..ef1717a963dfb76bac26b9f4277ae590b3c0a2e6:/src/common/dircmn.cpp diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index 7a14d42bd9..a70624c279 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -17,12 +17,6 @@ // headers // ---------------------------------------------------------------------------- -/* this is done in platform-specific files -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "dir.h" -#endif -*/ - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -67,7 +61,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 +93,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) ) {