diff options
author | Sergio Ahumada <sahumada@blackberry.com> | 2014-05-06 13:59:49 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-06 18:36:05 +0200 |
commit | 4603bf1bdcf20307398838e9435d18f1a4442983 (patch) | |
tree | afac6b5618cf2b045ce7c7e67cec6701109b4f7a /tests/auto/qgeomapscene/tst_qgeomapscene.cpp | |
parent | d603bd03795b412fd7a20f4bd804e236560a90c6 (diff) | |
download | qtlocation-4603bf1bdcf20307398838e9435d18f1a4442983.tar.gz |
QNX: Fix compilation of tests
- replace ceil() -> std::ceil()
- replace floor() -> std::floor()
- replace pow() -> std::pow()
Change-Id: I102ec6748fceef02fadce1bc3e5bb37e7ebdcd9d
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/qgeomapscene/tst_qgeomapscene.cpp')
-rw-r--r-- | tests/auto/qgeomapscene/tst_qgeomapscene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qgeomapscene/tst_qgeomapscene.cpp b/tests/auto/qgeomapscene/tst_qgeomapscene.cpp index 4303dd0f..a3b992dd 100644 --- a/tests/auto/qgeomapscene/tst_qgeomapscene.cpp +++ b/tests/auto/qgeomapscene/tst_qgeomapscene.cpp @@ -94,7 +94,7 @@ class tst_QGeoMapScene : public QObject double mercatorX; double mercatorY; - double halfLength = 1 / (pow(2.0, zoom) * 2); + double halfLength = 1 / (std::pow(2.0, zoom) * 2); double scaleX = screenWidth / tileSize; double scaleY = screenHeight / tileSize; double scaledHalfLengthX = halfLength * scaleX; |