X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23b8a2629903027852d7506162b7b0f44bd9f912..0d81b3cd93ae360405b3b98f92b6e43cbf4f23c1:/src/common/dircmn.cpp diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index 1674029b6d..8b5b453db0 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -55,16 +55,16 @@ wxDirTraverser::OnOpenError(const wxString& WXUNUSED(dirname)) // dumb generic implementation -bool wxDir::HasFiles(const wxString& spec) +bool wxDir::HasFiles(const wxString& spec) const { wxString s; return GetFirst(&s, spec, wxDIR_FILES | wxDIR_HIDDEN); } // we have a (much) faster version for Unix -#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__EMX__) || defined(__WINE__) +#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || defined(__EMX__) || defined(__WINE__) -bool wxDir::HasSubDirs(const wxString& spec) +bool wxDir::HasSubDirs(const wxString& spec) const { wxString s; return GetFirst(&s, spec, wxDIR_DIRS | wxDIR_HIDDEN); @@ -291,10 +291,12 @@ wxString wxDir::FindFirst(const wxString& dirname, // wxDir::GetTotalSize() // ---------------------------------------------------------------------------- +#if wxUSE_LONGLONG + class wxDirTraverserSumSize : public wxDirTraverser { public: - wxDirTraverserSumSize() { m_skippedFiles=false; } + wxDirTraverserSumSize() { } virtual wxDirTraverseResult OnFile(const wxString& filename) { @@ -355,3 +357,4 @@ wxULongLong wxDir::GetTotalSize(const wxString &dirname, wxArrayString *filesSki return traverser.GetTotalSize(); } +#endif // wxUSE_LONGLONG