X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98de4ac1c5ffe44700d6a43e8fca0a496d6ecada..c9d13e86a698164843715665624ccb929e37255c:/tests/archive/archivetest.cpp diff --git a/tests/archive/archivetest.cpp b/tests/archive/archivetest.cpp index dc75506136..dc5caa473e 100644 --- a/tests/archive/archivetest.cpp +++ b/tests/archive/archivetest.cpp @@ -1202,7 +1202,8 @@ void CorruptionTestCase::runTest() wxFileOffset len = in.GetLength(); // try flipping one byte in the archive - for (int pos = 0; pos < len; pos++) { + int pos; + for (pos = 0; pos < len; pos++) { char n = in[pos]; in[pos] = ~n; ExtractArchive(in); @@ -1211,7 +1212,7 @@ void CorruptionTestCase::runTest() } // try zeroing one byte in the archive - for (int pos = 0; pos < len; pos++) { + for (pos = 0; pos < len; pos++) { char n = in[pos]; in[pos] = 0; ExtractArchive(in); @@ -1248,7 +1249,8 @@ void CorruptionTestCase::ExtractArchive(wxInputStream& in) while (arc->IsOk()) arc->Read(buf, sizeof(buf)); - entry = auto_ptr(arc->GetNextEntry()); + auto_ptr next(arc->GetNextEntry()); + entry = next; } } @@ -1406,4 +1408,9 @@ template class ArchiveTestCase; template class ArchiveTestCase; #endif +#if wxUSE_TARSTREAM +#include "wx/tarstrm.h" +template class ArchiveTestCase; +#endif + #endif // wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS