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:
@@ -221,9 +221,8 @@ void Edit3DWidget::showBackgroundColorMenu(bool show, const QPoint &pos)
|
||||
m_backgroundColorMenu->close();
|
||||
}
|
||||
|
||||
void Edit3DWidget::linkActivated(const QString &link)
|
||||
void Edit3DWidget::linkActivated([[maybe_unused]] const QString &link)
|
||||
{
|
||||
Q_UNUSED(link)
|
||||
if (m_view)
|
||||
m_view->addQuick3DImport();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user