From caae981c6aeae74c41e7eb5a72851a539f8509fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 10 Nov 2021 20:33:13 +0100 Subject: [PATCH] Code cleanup --- src/map/IMG/huffmanstream.h | 1 - src/map/IMG/rgnfile.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/map/IMG/huffmanstream.h b/src/map/IMG/huffmanstream.h index cfa7c76b..ffb73901 100644 --- a/src/map/IMG/huffmanstream.h +++ b/src/map/IMG/huffmanstream.h @@ -17,7 +17,6 @@ public: bool atEnd() const {return _symbolDataSize + _bs.bitsAvailable() < _table.symBits();} - bool flush() {return _bs.flush();} protected: quint32 _symbolDataSize; diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index d345032c..5a11f61f 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -312,7 +312,7 @@ bool RGNFile::extPolyObjects(Handle &hdl, const SubDiv *subdiv, quint32 shift, poly.boundingRect = poly.boundingRect.united(c); } - if (!(stream.atEnd() && stream.flush())) + if (!(stream.atEnd() && bs.flush())) return false; } else { pos = QPoint(subdiv->lon() + LS(lon, 24-subdiv->bits()),