summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtransform/tst_qtransform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtransform/tst_qtransform.cpp')
-rw-r--r--tests/auto/qtransform/tst_qtransform.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qtransform/tst_qtransform.cpp b/tests/auto/qtransform/tst_qtransform.cpp
index 7a0945da96..f8319c9e13 100644
--- a/tests/auto/qtransform/tst_qtransform.cpp
+++ b/tests/auto/qtransform/tst_qtransform.cpp
@@ -112,7 +112,7 @@ void tst_QTransform::cleanup()
// No cleanup is required.
}
-#ifdef Q_OS_WIN32
+#if defined(Q_OS_WIN) && !defined(M_PI)
#define M_PI 3.14159265897932384626433832795f
#endif
@@ -740,10 +740,10 @@ void tst_QTransform::inverted_data()
QTest::newRow("big") << big;
- QTransform small;
- small.scale(1/s, 1/s);
+ QTransform smallTransform;
+ smallTransform.scale(1/s, 1/s);
- QTest::newRow("small") << small;
+ QTest::newRow("small") << smallTransform;
}
void tst_QTransform::inverted()