From 03e7d092c41c53b4b3ae14731eb7fd6c661af994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 26 Aug 2020 18:20:15 +0200 Subject: [PATCH] Code cleanup --- src/map/IMG/rgnfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index dfb84899..ea17a68d 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -445,7 +445,7 @@ bool RGNFile::links(Handle &hdl, const SubDiv *subdiv, NETFile *net, if (!readVUInt32(hdl, size)) return false; - quint32 pos = SubFile::pos(hdl); + quint32 entryStart = pos(hdl); if (!(readUInt8(hdl, flags) && readVUInt32(hdl, blockIndexIdSize, blockIndexId))) @@ -482,7 +482,7 @@ bool RGNFile::links(Handle &hdl, const SubDiv *subdiv, NETFile *net, lineId = (((v16 >> shift) >> 8) & 3) + 1; if (shift < 6 && i < b8 + b10 + b16 - 1) - seek(hdl, SubFile::pos(hdl) - 1); + seek(hdl, pos(hdl) - 1); } else { linkId = (quint8)v16; lineId = v16 >> 8; @@ -498,7 +498,7 @@ bool RGNFile::links(Handle &hdl, const SubDiv *subdiv, NETFile *net, _huffmanTable, lines); } - Q_ASSERT(pos + size == SubFile::pos(hdl)); + Q_ASSERT(entryStart + size == pos(hdl)); } return true;