diff options
author | Paul Gilbert | 2016-09-10 11:16:07 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-10 11:16:07 -0400 |
commit | bd010bc79f6a56b51c1414a8cafc64bc248496fe (patch) | |
tree | a1b2d0642709e4d79dce8774ba218d107c13e0c9 /engines/macventure/text.cpp | |
parent | 9c7b9e166746a903dc0b7e87967ec257967e1359 (diff) | |
download | scummvm-rg350-bd010bc79f6a56b51c1414a8cafc64bc248496fe.tar.gz scummvm-rg350-bd010bc79f6a56b51c1414a8cafc64bc248496fe.tar.bz2 scummvm-rg350-bd010bc79f6a56b51c1414a8cafc64bc248496fe.zip |
COMMON: Converted Common::BitStream to use DisposeAfterUse
Diffstat (limited to 'engines/macventure/text.cpp')
-rw-r--r-- | engines/macventure/text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/macventure/text.cpp b/engines/macventure/text.cpp index b4d67a1306..d8e18fffdf 100644 --- a/engines/macventure/text.cpp +++ b/engines/macventure/text.cpp @@ -50,7 +50,7 @@ TextAsset::TextAsset(MacVentureEngine *engine, ObjID objid, ObjID source, ObjID void TextAsset::decodeOld() { Common::SeekableReadStream *res = _container->getItem(_id); uint16 strLen = res->readUint16BE(); - Common::BitStream32BELSB stream(res, true); + Common::BitStream32BELSB stream(res, DisposeAfterUse::YES); char *str = new char[strLen + 1]; bool lowercase = false; char c; @@ -114,7 +114,7 @@ void TextAsset::decodeOld() { void TextAsset::decodeHuffman() { _decoded = Common::String(""); Common::SeekableReadStream *res = _container->getItem(_id); - Common::BitStream8MSB stream(res, true); + Common::BitStream8MSB stream(res, DisposeAfterUse::YES); uint16 strLen = 0; if (stream.getBit()) { strLen = stream.getBits(15); |