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:
@@ -93,9 +93,8 @@ QByteArray Edit3DAction::category() const
|
||||
return QByteArray();
|
||||
}
|
||||
|
||||
bool Edit3DAction::isVisible(const SelectionContext &selectionContext) const
|
||||
bool Edit3DAction::isVisible([[maybe_unused]] const SelectionContext &selectionContext) const
|
||||
{
|
||||
Q_UNUSED(selectionContext)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user