From 8ec0a90611560dcb29d0ceb8fc476408c0de4103 Mon Sep 17 00:00:00 2001 From: richiesams Date: Tue, 30 Jul 2013 14:38:58 -0500 Subject: [PATCH] ZVISION: Convert _blockSize to an anonymous enum --- engines/zvision/lzss_read_stream.cpp | 2 +- engines/zvision/lzss_read_stream.h | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/engines/zvision/lzss_read_stream.cpp b/engines/zvision/lzss_read_stream.cpp index 8518c8fff91..03ab12d8be8 100644 --- a/engines/zvision/lzss_read_stream.cpp +++ b/engines/zvision/lzss_read_stream.cpp @@ -32,7 +32,7 @@ LzssReadStream::LzssReadStream(Common::SeekableReadStream *source) _windowCursor(0x0FEE), _eosFlag(false) { // Clear the window to null - memset(_window, 0, _blockSize); + memset(_window, 0, BLOCK_SIZE); } uint32 LzssReadStream::decompressBytes(byte *destination, uint32 numberOfBytes) { diff --git a/engines/zvision/lzss_read_stream.h b/engines/zvision/lzss_read_stream.h index 25bb66339e4..25a8b672222 100644 --- a/engines/zvision/lzss_read_stream.h +++ b/engines/zvision/lzss_read_stream.h @@ -43,9 +43,10 @@ public: */ LzssReadStream(Common::SeekableReadStream *source); -public: - static const uint32 _npos = 0xFFFFFFFFu; - static const uint16 _blockSize = 0x1000u; +private: + enum { + BLOCK_SIZE = 0x1000 + }; private: Common::SeekableReadStream *_source;