diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-26 19:27:50 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-26 20:14:19 +0100 |
commit | f8d4460cd0f998f6edf37c0933c5a3438ac452b9 (patch) | |
tree | 01ccf4cd8640929db4fb9e9033a7efeddc28a310 /project2/compression/decompressStream.cpp | |
parent | Use AdHoc plugins for variable implementations (diff) | |
download | project2-f8d4460cd0f998f6edf37c0933c5a3438ac452b9.tar.bz2 project2-f8d4460cd0f998f6edf37c0933c5a3438ac452b9.tar.xz project2-f8d4460cd0f998f6edf37c0933c5a3438ac452b9.zip |
Use AdHoc plugins for decompressors
Diffstat (limited to 'project2/compression/decompressStream.cpp')
-rw-r--r-- | project2/compression/decompressStream.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/project2/compression/decompressStream.cpp b/project2/compression/decompressStream.cpp index c1d52ab..b986a0a 100644 --- a/project2/compression/decompressStream.cpp +++ b/project2/compression/decompressStream.cpp @@ -17,7 +17,7 @@ class DecompressStream : public Stream { void runStream(const Sink & sink, ExecContext * ec) const { - DecompressorPtr decomp = DecompressorLoader::getFor(method(ec))->create(); + DecompressorPtr decomp = DecompressorFactory::createNew(method(ec)); stream->runStream([&](const char * data, size_t len) -> size_t { decomp->decompress(data, len, sink); return len; @@ -29,5 +29,4 @@ class DecompressStream : public Stream { }; DECLARE_LOADER("decompstream", DecompressStream); -INSTANTIATESTORE(std::string, DecompressorLoader); |