X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8650108199bf799f21e29811cddaefd579c98c88..b666ade78496cd91d648fcfe2fd6b79ce2b15e33:/src/unix/dir.cpp diff --git a/src/unix/dir.cpp b/src/unix/dir.cpp index 7743d9b064..2581eb1cb9 100644 --- a/src/unix/dir.cpp +++ b/src/unix/dir.cpp @@ -115,7 +115,7 @@ wxDirData::~wxDirData() bool wxDirData::Read(wxString *filename) { - dirent *de = (dirent *)NULL; // just to silence compiler warnings + dirent *de = NULL; // just to silence compiler warnings bool matches = false; // speed up string concatenation in the loop a bit @@ -225,9 +225,6 @@ bool wxDir::Open(const wxString& dirname) if ( !M_DIR->IsOk() ) { - wxLogSysError(_("Can not enumerate files in directory '%s'"), - dirname.c_str()); - delete M_DIR; m_data = NULL; @@ -290,7 +287,7 @@ bool wxDir::GetNext(wxString *filename) const return M_DIR->Read(filename); } -bool wxDir::HasSubDirs(const wxString& spec) +bool wxDir::HasSubDirs(const wxString& spec) const { wxCHECK_MSG( IsOpened(), false, _T("must wxDir::Open() first") );