summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qarraydata
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2012-01-24 18:05:07 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-26 13:24:02 +0100
commite32d417b5129171be09a32bb3a65dca6f7464d8d (patch)
tree55ef8fc0c4e9bbf661eb168805d0552206ba1fd3 /tests/auto/corelib/tools/qarraydata
parentb59d8319806ff0ed2e340126fd110413301a833b (diff)
Fix some warnings with Clang
The extra bool arguments weren't needed in the first place as they specify the default, but were left behind when allocate parameters were changed from bools to AllocationOptions. Clang saves the day by pointing out the weird conversion going through void ** (!?) Change-Id: Ia0dafce06bf0ee62bd825a2db819c890343b6342 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools/qarraydata')
-rw-r--r--tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp
index 55aa2e5e75..46985c1e3b 100644
--- a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp
+++ b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp
@@ -737,7 +737,7 @@ void tst_QArrayData::typedData()
{
Deallocator keeper(sizeof(char),
Q_ALIGNOF(QTypedArrayData<char>::AlignmentDummy));
- QArrayData *array = QTypedArrayData<char>::allocate(10, false);
+ QArrayData *array = QTypedArrayData<char>::allocate(10);
keeper.headers.append(array);
QVERIFY(array);
@@ -757,7 +757,7 @@ void tst_QArrayData::typedData()
{
Deallocator keeper(sizeof(short),
Q_ALIGNOF(QTypedArrayData<short>::AlignmentDummy));
- QArrayData *array = QTypedArrayData<short>::allocate(10, false);
+ QArrayData *array = QTypedArrayData<short>::allocate(10);
keeper.headers.append(array);
QVERIFY(array);
@@ -777,7 +777,7 @@ void tst_QArrayData::typedData()
{
Deallocator keeper(sizeof(double),
Q_ALIGNOF(QTypedArrayData<double>::AlignmentDummy));
- QArrayData *array = QTypedArrayData<double>::allocate(10, false);
+ QArrayData *array = QTypedArrayData<double>::allocate(10);
keeper.headers.append(array);
QVERIFY(array);