Skip to content

Commit

Permalink
Use double instead of qreal also on non-Android
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Mar 12, 2013
1 parent dba353c commit 34ce6f9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/core/qgscoordinatetransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,9 @@ void QgsCoordinateTransform::transformPolygon( QPolygonF& poly, TransformDirecti
//create x, y arrays
int nVertices = poly.size();

#ifdef ANDROID
QVector<double> x( nVertices );
QVector<double> y( nVertices );
QVector<double> z( nVertices );
#else
QVector<qreal> x( nVertices );
QVector<qreal> y( nVertices );
QVector<qreal> z( nVertices );
#endif
QVector<double> x( nVertices );
QVector<double> y( nVertices );
QVector<double> z( nVertices );

for ( int i = 0; i < nVertices; ++i )
{
Expand Down

0 comments on commit 34ce6f9

Please sign in to comment.