InputStream: add virtual destructor

Replaces the method Close().
This commit is contained in:
Max Kellermann
2014-05-11 16:59:19 +02:00
parent f1d0700252
commit 82337dec44
31 changed files with 48 additions and 180 deletions

View File

@@ -181,14 +181,6 @@ Iso9660ArchiveFile::OpenStream(const char *pathname,
statbuf);
}
static void
iso9660_input_close(InputStream *is)
{
Iso9660InputStream *iis = (Iso9660InputStream *)is;
delete iis;
}
inline size_t
Iso9660InputStream::Read(void *ptr, size_t read_size, Error &error)
{
@@ -250,7 +242,6 @@ const InputPlugin iso9660_input_plugin = {
nullptr,
nullptr,
nullptr,
iso9660_input_close,
nullptr,
nullptr,
nullptr,