zipios: [skip ci] remove deprecated header

This commit is contained in:
wmayer
2022-09-06 11:57:26 +02:00
parent 089ddb66b3
commit 810567a738
2 changed files with 3 additions and 8 deletions

View File

@@ -7,12 +7,7 @@
#include <iostream>
#include <fstream>
#if defined (HAVE_STD_IOSTREAM) && defined (USE_STD_IOSTREAM)
#include <sstream>
#else
#include <strstream>
#endif
#endif

View File

@@ -20,7 +20,7 @@ ZipInputStreambuf::ZipInputStreambuf( streambuf *inbuf, int s_pos, bool del_inbu
_open_entry( false )
{
ConstEntryPointer entry = getNextEntry() ;
if ( ! entry->isValid() ) {
; // FIXME: throw something?
}
@@ -51,11 +51,11 @@ ConstEntryPointer ZipInputStreambuf::getNextEntry() {
is.exceptions(istream::eofbit | istream::failbit | istream::badbit);
is >> _curr_entry ;
if ( _curr_entry.isValid() ) {
_data_start = _inbuf->pubseekoff(0, ios::cur,
_data_start = _inbuf->pubseekoff(0, ios::cur,
ios::in);
if ( _curr_entry.getMethod() == DEFLATED ) {
_open_entry = true ;
reset() ; // reset inflatestream data structures
reset() ; // reset inflatestream data structures
// cerr << "deflated" << endl ;
} else if ( _curr_entry.getMethod() == STORED ) {
_open_entry = true ;