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>
This commit is contained in:
parent
b59d831980
commit
e32d417b51
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user