diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-26 11:22:46 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-26 11:22:46 +0100 |
commit | 078839c711a858c75c6f5ae4e73387be02708b86 (patch) | |
tree | 39736dd9861798b696ce72c7c04b41028fb92405 /src/archive | |
parent | 90cc32f6f8b6e34b03c2e22b4b82fefc89f80a75 (diff) |
archive/zzip: convert struct to class
Diffstat (limited to 'src/archive')
-rw-r--r-- | src/archive/plugins/ZzipArchivePlugin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/archive/plugins/ZzipArchivePlugin.cxx b/src/archive/plugins/ZzipArchivePlugin.cxx index e69c7679d..fc40e7689 100644 --- a/src/archive/plugins/ZzipArchivePlugin.cxx +++ b/src/archive/plugins/ZzipArchivePlugin.cxx @@ -85,11 +85,12 @@ ZzipArchiveFile::Visit(ArchiveVisitor &visitor) /* single archive handling */ -struct ZzipInputStream final : public InputStream { +class ZzipInputStream final : public InputStream { std::shared_ptr<ZzipDir> dir; - ZZIP_FILE *file; + ZZIP_FILE *const file; +public: ZzipInputStream(const std::shared_ptr<ZzipDir> _dir, const char *_uri, Mutex &_mutex, Cond &_cond, ZZIP_FILE *_file) |