X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..a6c7a0f826d5e156c177b4755365c3eb33e9b933:/src/common/dircmn.cpp?ds=inline 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 */