summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-10 19:08:16 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-10 19:08:16 (GMT)
commitf9262d857f9986dcc46550e870f78b23a735634f (patch)
tree06c40043a9133a11f711af5e194822045bb51d05
parent207765fd428ec313bd2a5a87eaca57f5adaf9cc9 (diff)
Code style fixes: Curly braces also for oneliners.
-rw-r--r--src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp b/src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp
index e40a8ae..d162133 100644
--- a/src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp
+++ b/src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp
@@ -211,10 +211,14 @@ void BuildingGeoPolygonGraphicsItem::paint(GeoPainter* painter, const ViewportPa
Q_ASSERT(!m_cachedOutlinePolygons.isEmpty());
Q_ASSERT(!m_cachedInnerPolygons.isEmpty());
updatePolygons(viewport, m_cachedOutlinePolygons, m_cachedInnerPolygons, m_hasInnerBoundaries);
- if (m_cachedOutlinePolygons.isEmpty()) return;
+ if (m_cachedOutlinePolygons.isEmpty()) {
+ return;
+ }
paintFrame(painter, viewport);
} else if (layer.endsWith(QLatin1String("/roof"))) {
- if (m_cachedOutlinePolygons.isEmpty()) return;
+ if (m_cachedOutlinePolygons.isEmpty()) {
+ return;
+ }
paintRoof(painter, viewport);
qDeleteAll(m_cachedOutlinePolygons);
m_cachedOutlinePolygons.clear();