summaryrefslogtreecommitdiff
path: root/tests/auto/qgeomapscene/tst_qgeomapscene.cpp
diff options
context:
space:
mode:
authorSergio Ahumada <sahumada@blackberry.com>2014-05-06 13:59:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-06 18:36:05 +0200
commit4603bf1bdcf20307398838e9435d18f1a4442983 (patch)
treeafac6b5618cf2b045ce7c7e67cec6701109b4f7a /tests/auto/qgeomapscene/tst_qgeomapscene.cpp
parentd603bd03795b412fd7a20f4bd804e236560a90c6 (diff)
downloadqtlocation-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.cpp2
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;