1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Code cleanup

This commit is contained in:
Martin Tůma 2024-10-03 07:51:53 +02:00
parent 9ec5ea45d8
commit 3b276882e0

View File

@ -25,7 +25,7 @@ private:
{ {
if (!_file->readVUInt32SW(_hdl, 4, _value)) if (!_file->readVUInt32SW(_hdl, 4, _value))
return false; return false;
_shift = (quint8)-8; _shift = -8;
return true; return true;
} }
@ -36,7 +36,7 @@ private:
_value <<= bits; _value <<= bits;
_shift += bits; _shift += bits;
while (-1 < (qint8)_shift) { while (_shift >= 0) {
if (!_file->readByte(_hdl, &data)) if (!_file->readByte(_hdl, &data))
return false; return false;
@ -53,7 +53,7 @@ private:
const SubFile *_file; const SubFile *_file;
SubFile::Handle &_hdl; SubFile::Handle &_hdl;
quint32 _value; quint32 _value;
quint8 _shift; qint8 _shift;
}; };
bool readLine(BitStream &bs); bool readLine(BitStream &bs);