aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-10 11:16:07 -0400
committerPaul Gilbert2016-09-10 11:16:07 -0400
commitbd010bc79f6a56b51c1414a8cafc64bc248496fe (patch)
treea1b2d0642709e4d79dce8774ba218d107c13e0c9 /engines/macventure
parent9c7b9e166746a903dc0b7e87967ec257967e1359 (diff)
downloadscummvm-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')
-rw-r--r--engines/macventure/text.cpp4
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);