X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6477b92b7d51a6ec7a26cf7bae1e8c7637995e4..4483a6ed9778ecc0fe21f97c4680cccf822e08c5:/tests/archive/archivetest.cpp diff --git a/tests/archive/archivetest.cpp b/tests/archive/archivetest.cpp index fc50a5217f..1e09053104 100644 --- a/tests/archive/archivetest.cpp +++ b/tests/archive/archivetest.cpp @@ -17,7 +17,7 @@ # include "wx/wx.h" #endif -#if wxUSE_STREAMS && wxUSE_ARCSTREAM +#if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS // VC++ 6 warns that the list iterator's '->' operator will not work whenever // std::list is used with a non-pointer, so switch it off. @@ -320,7 +320,7 @@ private: TempDir::TempDir() { wxString tmp = wxFileName::CreateTempFileName(_T("arctest-")); - if (tmp != wxEmptyString) { + if (!tmp.empty()) { wxRemoveFile(tmp); m_original = wxGetCwd(); CPPUNIT_ASSERT(wxMkdir(tmp, 0700)); @@ -331,7 +331,7 @@ TempDir::TempDir() TempDir::~TempDir() { - if (m_tmp != wxEmptyString) { + if (!m_tmp.empty()) { wxSetWorkingDirectory(m_original); RemoveDir(m_tmp); } @@ -1284,4 +1284,4 @@ template class ArchiveTestCase; template class ArchiveTestCase; #endif -#endif // wxUSE_STREAMS && wxUSE_ARCSTREAM +#endif // wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS