summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcoreelement.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-25 08:41:00 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-25 08:41:00 (GMT)
commit2d8716756ef648dcb34d7493d145360a0e029393 (patch)
tree5da1f346d36d5ae215d84889783e5cb2f076b1d3 /src/testlib/qtestcoreelement.h
parentf2e4c961b3dc6b6e0713ffe75209ab5661e53dd6 (diff)
downloadQt-2d8716756ef648dcb34d7493d145360a0e029393.zip
Qt-2d8716756ef648dcb34d7493d145360a0e029393.tar.gz
Qt-2d8716756ef648dcb34d7493d145360a0e029393.tar.bz2
Fix warnings when compiling Qt (tst_warnings).
Don't use old-style casts in Qt code. And avoid signed/unsigned comparisons (sizeof returns size_t, which is unsigned).
Diffstat (limited to 'src/testlib/qtestcoreelement.h')
-rw-r--r--src/testlib/qtestcoreelement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcoreelement.h b/src/testlib/qtestcoreelement.h
index a6aa56d..8c029b5 100644
--- a/src/testlib/qtestcoreelement.h
+++ b/src/testlib/qtestcoreelement.h
@@ -74,7 +74,7 @@ class QTestCoreElement: public QTestCoreList<ElementType>
template<class ElementType>
QTestCoreElement<ElementType>::QTestCoreElement(int t)
-:listOfAttributes(0), type((QTest::LogElementType)t)
+ :listOfAttributes(0), type(QTest::LogElementType(t))
{
}