X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..1d4f9cb74dc216935f4f15219cd9a581e1bd5885:/src/common/dircmn.cpp diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index 246df8fb3a..1fd7429bff 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -18,7 +18,7 @@ // ---------------------------------------------------------------------------- /* this is done in platform-specific files -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dir.h" #endif */ @@ -66,7 +66,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__) +#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__EMX__) bool wxDir::HasSubDirs(const wxString& spec) { @@ -100,7 +100,7 @@ size_t wxDir::Traverse(wxDirTraverser& sink, wxString dirname; for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | wxDIR_HIDDEN); cont; - cont = GetNext(&dirname) ) + cont = cont && GetNext(&dirname) ) { const wxString fulldirname = prefix + dirname; @@ -206,7 +206,7 @@ public: virtual wxDirTraverseResult OnFile(const wxString& filename) { - m_files.Add(filename); + m_files.push_back(filename); return wxDIR_CONTINUE; } @@ -217,6 +217,8 @@ public: private: wxArrayString& m_files; + + DECLARE_NO_COPY_CLASS(wxDirTraverserSimple) }; /* static */