From e1d4c2b532bc649352a223b4ba9de7b8d8cf935f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 2 Oct 2021 21:09:30 +0200 Subject: [PATCH] Removed now obsolete hack --- src/map/IMG/deltastream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/IMG/deltastream.h b/src/map/IMG/deltastream.h index d4deecdf..e9ecf761 100644 --- a/src/map/IMG/deltastream.h +++ b/src/map/IMG/deltastream.h @@ -8,7 +8,7 @@ namespace IMG { class DeltaStream : public BitStream1 { public: DeltaStream(const SubFile &file, SubFile::Handle &hdl, quint32 length) - : BitStream1(file, hdl, length), _readBits(0xFFFFFFFF) {} + : BitStream1(file, hdl, length) {} bool init(quint8 info, bool extraBit, bool extended); bool readNext(qint32 &lonDelta, qint32 &latDelta) @@ -17,7 +17,7 @@ public: ? (readDelta(_lonBits, _lonSign, _extraBit, lonDelta) && readDelta(_latBits, _latSign, false, latDelta)) : false; } - bool atEnd() const {return (_readBits != 0xFFFFFFFF && !hasNext());} + bool atEnd() const {return !hasNext();} private: bool hasNext() const {return bitsAvailable() >= _readBits;}