diff options
author | randomdan <randomdan@localhost> | 2013-07-05 00:01:26 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-07-05 00:01:26 +0000 |
commit | 5507f618e094554f04f61a950d9c6d2b55865d3e (patch) | |
tree | 6f3a750f79ad26047ff5322522219798d19aa64c /project2/compression/decompressStream.cpp | |
parent | Move remaining options out of environment (diff) | |
download | project2-5507f618e094554f04f61a950d9c6d2b55865d3e.tar.bz2 project2-5507f618e094554f04f61a950d9c6d2b55865d3e.tar.xz project2-5507f618e094554f04f61a950d9c6d2b55865d3e.zip |
Massive refactor to remove the appEngine and environment complication and instead have an execution context that's passed around from the original call site
Diffstat (limited to 'project2/compression/decompressStream.cpp')
-rw-r--r-- | project2/compression/decompressStream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/project2/compression/decompressStream.cpp b/project2/compression/decompressStream.cpp index 92ba035..ad2e01d 100644 --- a/project2/compression/decompressStream.cpp +++ b/project2/compression/decompressStream.cpp @@ -14,13 +14,13 @@ class DecompressStream : public Stream { p->script->loader.addLoadTarget(p, Storer::into<ElementLoader>(&stream)); } - void runStream(const Sink & sink) const + void runStream(const Sink & sink, ExecContext * ec) const { - DecompressorPtr decomp = DecompressorLoader::getFor(method())->create(); + DecompressorPtr decomp = DecompressorLoader::getFor(method(ec))->create(); stream->runStream([&](const char * data, size_t len) -> size_t { decomp->decompress(data, len, sink); return len; - }); + }, ec); } StreamPtr stream; |