1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Removed now obsolete hack

This commit is contained in:
Martin Tůma 2021-10-02 21:09:30 +02:00
parent b14dd23224
commit e1d4c2b532

View File

@ -8,7 +8,7 @@ namespace IMG {
class DeltaStream : public BitStream1 { class DeltaStream : public BitStream1 {
public: public:
DeltaStream(const SubFile &file, SubFile::Handle &hdl, quint32 length) 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 init(quint8 info, bool extraBit, bool extended);
bool readNext(qint32 &lonDelta, qint32 &latDelta) bool readNext(qint32 &lonDelta, qint32 &latDelta)
@ -17,7 +17,7 @@ public:
? (readDelta(_lonBits, _lonSign, _extraBit, lonDelta) ? (readDelta(_lonBits, _lonSign, _extraBit, lonDelta)
&& readDelta(_latBits, _latSign, false, latDelta)) : false; && readDelta(_latBits, _latSign, false, latDelta)) : false;
} }
bool atEnd() const {return (_readBits != 0xFFFFFFFF && !hasNext());} bool atEnd() const {return !hasNext();}
private: private:
bool hasNext() const {return bitsAvailable() >= _readBits;} bool hasNext() const {return bitsAvailable() >= _readBits;}