mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
preventing unused warnings
This commit is contained in:
parent
d3cdfb5084
commit
1c8ec3b1c9
1 changed files with 4 additions and 0 deletions
|
@ -211,7 +211,11 @@ void VrMenu::insertAction(QAction* before, QAction* action) {
|
|||
bool invokeResult =
|
||||
QMetaObject::invokeMethod(menu, "insertItem", Qt::DirectConnection, Q_RETURN_ARG(QQuickMenuItem*, returnedValue),
|
||||
Q_ARG(int, index), Q_ARG(QString, action->text()));
|
||||
#ifndef QT_NO_DEBUG
|
||||
Q_ASSERT(invokeResult);
|
||||
#else
|
||||
Q_UNUSED(invokeResult);
|
||||
#endif
|
||||
result = reinterpret_cast<QObject*>(returnedValue);
|
||||
}
|
||||
Q_ASSERT(result);
|
||||
|
|
Loading…
Reference in a new issue