From 8a3808248a2819d420a9e0e6162fe15dfc443470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 24 Nov 2024 09:09:45 +0100 Subject: [PATCH] Code cleanup --- src/map/mapsforge/rastertile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/mapsforge/rastertile.cpp b/src/map/mapsforge/rastertile.cpp index 7bd86bb7..3f2e2bf1 100644 --- a/src/map/mapsforge/rastertile.cpp +++ b/src/map/mapsforge/rastertile.cpp @@ -98,8 +98,8 @@ void RasterTile::processLabels(const QList &points, for (int j = 0; j < labels.size(); j++) { const Style::TextRender *ri = labels.at(j); if (ri->rule().match(point.center(), point.tags)) { - const QByteArray *lbl; - if ((lbl = label(ri->key(), point.tags))) { + const QByteArray *lbl = label(ri->key(), point.tags); + if (lbl) { if (!si) { ti = ri; ll.append(lbl);