diff options
author | Robert Loehning <robert.loehning@qt.io> | 2017-09-11 19:18:09 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2017-09-12 08:59:00 +0000 |
commit | aea4bfabb5c9360324de7df1db27156130c86874 (patch) | |
tree | 714d4256cfa6dfe0f3498da237555cf526213eb2 /src/location/declarativemaps | |
parent | b4ca6fea977e35e60d40d12c0e93d1c44fac5b5f (diff) | |
download | qtlocation-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>
Diffstat (limited to 'src/location/declarativemaps')
-rw-r--r-- | src/location/declarativemaps/qdeclarativepolygonmapitem.cpp | 4 |
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"); |