summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2017-09-11 19:18:09 +0200
committerRobert Loehning <robert.loehning@qt.io>2017-09-12 08:59:00 +0000
commitaea4bfabb5c9360324de7df1db27156130c86874 (patch)
tree714d4256cfa6dfe0f3498da237555cf526213eb2
parentb4ca6fea977e35e60d40d12c0e93d1c44fac5b5f (diff)
downloadqtlocation-aea4bfabb5c9360324de7df1db27156130c86874.tar.gz
Add braces to fix compilation with clang
Change-Id: If79aca3d20475f7734cdd525747f44372ed930b7 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
-rw-r--r--src/location/declarativemaps/qdeclarativepolygonmapitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
index 48f66423..b481c64e 100644
--- a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
+++ b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
@@ -286,10 +286,10 @@ void QGeoMapPolygonGeometry::updateScreenPoints(const QGeoMap &map)
if (e.isMoveTo() || i == ppi.elementCount() - 1
|| (qAbs(e.x - poly.front()[0]) < 0.1
&& qAbs(e.y - poly.front()[1]) < 0.1)) {
- Point p = { e.x, e.y };
+ Point p = {{ e.x, e.y }};
poly.push_back( p );
} else if (e.isLineTo()) {
- Point p = { e.x, e.y };
+ Point p = {{ e.x, e.y }};
poly.push_back( p );
} else {
qWarning("Unhandled element type in polygon painterpath");