From dcf55c7e328578d435eb14277cb6ba9e072f7e9c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Jan 2013 20:32:23 +0100 Subject: InputStream: add constructor/destructor Eliminate input_stream_init() and input_stream_deinit(). --- src/archive/Iso9660ArchivePlugin.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/archive/Iso9660ArchivePlugin.cxx') diff --git a/src/archive/Iso9660ArchivePlugin.cxx b/src/archive/Iso9660ArchivePlugin.cxx index b2802756f..f92895b7d 100644 --- a/src/archive/Iso9660ArchivePlugin.cxx +++ b/src/archive/Iso9660ArchivePlugin.cxx @@ -178,10 +178,9 @@ struct Iso9660InputStream { Iso9660InputStream(Iso9660ArchiveFile &_archive, const char *uri, Mutex &mutex, Cond &cond, iso9660_stat_t *_statbuf) - :archive(&_archive), statbuf(_statbuf), + :base(iso9660_input_plugin, uri, mutex, cond), + archive(&_archive), statbuf(_statbuf), max_blocks(CEILING(statbuf->size, ISO_BLOCKSIZE)) { - input_stream_init(&base, &iso9660_input_plugin, uri, - mutex, cond); base.ready = true; base.size = statbuf->size; @@ -192,7 +191,6 @@ struct Iso9660InputStream { ~Iso9660InputStream() { free(statbuf); archive->Unref(); - input_stream_deinit(&base); } }; -- cgit v1.2.3