diff options
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r-- | tests/auto/corelib/tools/qexplicitlyshareddatapointer/tst_qexplicitlyshareddatapointer.cpp | 12 | ||||
-rw-r--r-- | tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/corelib/tools/qexplicitlyshareddatapointer/tst_qexplicitlyshareddatapointer.cpp b/tests/auto/corelib/tools/qexplicitlyshareddatapointer/tst_qexplicitlyshareddatapointer.cpp index e89e634841..7c1e90f5d4 100644 --- a/tests/auto/corelib/tools/qexplicitlyshareddatapointer/tst_qexplicitlyshareddatapointer.cpp +++ b/tests/auto/corelib/tools/qexplicitlyshareddatapointer/tst_qexplicitlyshareddatapointer.cpp @@ -169,7 +169,7 @@ void tst_QExplicitlySharedDataPointer::data() const pointer.data(); /* Check that this cast is possible. */ - static_cast<const MyClass *>(pointer.data()); + Q_UNUSED(static_cast<const MyClass *>(pointer.data())); QVERIFY(! (pointer == nullptr)); QVERIFY(! (nullptr == pointer)); @@ -181,7 +181,7 @@ void tst_QExplicitlySharedDataPointer::data() const pointer.data(); /* Check that this cast is possible. */ - static_cast<const MyClass *>(pointer.data()); + Q_UNUSED(static_cast<const MyClass *>(pointer.data())); } /* Must not mutate the pointer. */ @@ -190,8 +190,8 @@ void tst_QExplicitlySharedDataPointer::data() const pointer.data(); /* Check that these casts are possible. */ - static_cast<MyClass *>(pointer.data()); - static_cast<const MyClass *>(pointer.data()); + Q_UNUSED(static_cast<MyClass *>(pointer.data())); + Q_UNUSED(static_cast<const MyClass *>(pointer.data())); } /* Must not mutate the pointer. */ @@ -200,8 +200,8 @@ void tst_QExplicitlySharedDataPointer::data() const pointer.data(); /* Check that these casts are possible. */ - static_cast<MyClass *>(pointer.data()); - static_cast<const MyClass *>(pointer.data()); + Q_UNUSED(static_cast<MyClass *>(pointer.data())); + Q_UNUSED(static_cast<const MyClass *>(pointer.data())); } } diff --git a/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp b/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp index ea94cc2999..9c90b44e87 100644 --- a/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp +++ b/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp @@ -252,7 +252,7 @@ void tst_QScopedPointer::negationOperatorSignature() !p; /* The return value should be bool. */ - static_cast<bool>(!p); + Q_UNUSED(static_cast<bool>(!p)); } void tst_QScopedPointer::operatorBool() @@ -302,7 +302,7 @@ void tst_QScopedPointer::isNullSignature() const QScopedPointer<int> p(new int(69)); /* The signature should be const and return bool. */ - static_cast<bool>(p.isNull()); + Q_UNUSED(static_cast<bool>(p.isNull())); } void tst_QScopedPointer::objectSize() |