From 68f1f1fc3f1fe6d9476d57211cfbceaff329768b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 17 Dec 2024 10:55:01 +0100 Subject: [PATCH] Code cleanup --- src/map/IMG/jls.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/map/IMG/jls.h b/src/map/IMG/jls.h index 99c0ec77..00c668c9 100644 --- a/src/map/IMG/jls.h +++ b/src/map/IMG/jls.h @@ -60,9 +60,8 @@ private: struct Context { Context(quint16 width, quint16 range) + : data(QVector((width + 3) * 2)), w(width) { - w = width; - data = QVector((w + 3) * 2); last = data.data(); current = data.data() + (w + 3); @@ -79,18 +78,17 @@ private: } } - quint8 runIndex; - quint8 rk; + QVector data; + quint16 *current; + quint16 *last; + quint16 w; quint16 rg; quint16 n[4]; quint16 a[4]; qint16 b[4]; + quint8 runIndex; + quint8 rk; quint8 lrk; - - quint16 w; - QVector data; - quint16 *current; - quint16 *last; }; bool readLine(BitStream &bs, Context &ctx) const;