input: wrap InputStream in std::unique_ptr

This commit is contained in:
Max Kellermann
2016-02-21 08:03:32 +01:00
parent 054e9ecaae
commit cadc67ea40
19 changed files with 107 additions and 103 deletions

View File

@@ -39,7 +39,7 @@ class TagFileScan {
Mutex mutex;
Cond cond;
InputStream *is;
InputStreamPtr is;
public:
TagFileScan(Path _path_fs, const char *_suffix,
@@ -48,10 +48,6 @@ public:
handler(_handler), handler_ctx(_handler_ctx) ,
is(nullptr) {}
~TagFileScan() {
delete is;
}
bool ScanFile(const DecoderPlugin &plugin) {
return plugin.ScanFile(path_fs, handler, handler_ctx);
}