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);
}
// 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);
while (arc->IsOk())
arc->Read(buf, sizeof(buf));
- entry = auto_ptr<wxArchiveEntry>(arc->GetNextEntry());
+ auto_ptr<wxArchiveEntry> next(arc->GetNextEntry());
+ entry = next;
}
}
template class ArchiveTestCase<wxZipClassFactory>;
#endif
+#if wxUSE_TARSTREAM
+#include "wx/tarstrm.h"
+template class ArchiveTestCase<wxTarClassFactory>;
+#endif
+
#endif // wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS