forked from qt-creator/qt-creator
CorePlugin: Compile with QT_NO_CAST_FROM_ASCII.
- Wrap literals in QLatin1String()/QLatin1Char(). - Extract some string constants avoiding repeated QString construction. - Fix repeated invocation of Container.end() in loops. Change-Id: If737735507aaf82e53063adda53f54c46418f42f Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -405,7 +405,11 @@ bool MenuActionContainer::updateInternal()
|
||||
if (ActionContainerPrivate *container = qobject_cast<ActionContainerPrivate*>(item)) {
|
||||
actions.removeAll(container->menu()->menuAction());
|
||||
if (container == this) {
|
||||
qWarning() << Q_FUNC_INFO << "container" << (this->menu() ? this->menu()->title() : "") << "contains itself as subcontainer";
|
||||
QByteArray warning = Q_FUNC_INFO + QByteArray(" container '");
|
||||
if (this->menu())
|
||||
warning += this->menu()->title().toLocal8Bit();
|
||||
warning += "' contains itself as subcontainer";
|
||||
qWarning("%s", warning.constData());
|
||||
continue;
|
||||
}
|
||||
if (container->updateInternal()) {
|
||||
|
||||
Reference in New Issue
Block a user