summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp')
-rw-r--r--tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp b/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp
index a9d8e60046..e7659a25bd 100644
--- a/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp
+++ b/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp
@@ -2279,9 +2279,9 @@ void tst_QMatrixNxN::rotate4x4_data()
float y = 2.0f;
float z = -6.0f;
float angle = -45.0f;
- float c = qCos(angle * M_PI / 180.0f);
- float s = qSin(angle * M_PI / 180.0f);
- float len = sqrtf(x * x + y * y + z * z);
+ float c = std::cos(angle * M_PI / 180.0f);
+ float s = std::sin(angle * M_PI / 180.0f);
+ float len = std::sqrt(x * x + y * y + z * z);
float xu = x / len;
float yu = y / len;
float zu = z / len;