forked from qt-creator/qt-creator
QmlDesigner: 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: I08b712f146a0625d0367657c31d6c1e5f7caec41 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -176,12 +176,10 @@ void ConnectionView::selectedNodesChanged(const QList<ModelNode> & selectedNodeL
|
||||
emit connectionViewWidget()->setEnabledAddButton(selectedNodeList.count() == 1);
|
||||
}
|
||||
|
||||
void ConnectionView::auxiliaryDataChanged(const ModelNode &node,
|
||||
void ConnectionView::auxiliaryDataChanged([[maybe_unused]] const ModelNode &node,
|
||||
const PropertyName &name,
|
||||
const QVariant &data)
|
||||
{
|
||||
Q_UNUSED(node)
|
||||
|
||||
// Check if the auxiliary data is actually the locked property or if it is unlocked
|
||||
if (name != QmlDesigner::lockedProperty || !data.toBool())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user