forked from qt-creator/qt-creator
QmlPuppet: Adapt to C++ 17 [[maybe_unused]]
It has the advantage to to move the attribute to the declaration instead of using a workaround. Change-Id: Ia6115ab8fefbe03f247edfea2b7bed73e9149068 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -69,9 +69,8 @@ PositionerNodeInstance::Pointer PositionerNodeInstance::create(QObject *object)
|
||||
|
||||
void PositionerNodeInstance::refreshLayoutable()
|
||||
{
|
||||
bool success = QMetaObject::invokeMethod(object(), "prePositioning");
|
||||
[[maybe_unused]] bool success = QMetaObject::invokeMethod(object(), "prePositioning");
|
||||
Q_ASSERT(success);
|
||||
Q_UNUSED(success)
|
||||
}
|
||||
|
||||
PropertyNameList PositionerNodeInstance::ignoredProperties() const
|
||||
|
||||
Reference in New Issue
Block a user