forked from qt-creator/qt-creator
QmlDesigner: Fix warning
Arguments of typeid should not have side effects. Change-Id: I197ee77e0757fcb961e62fa7bdff36e7d58da12a Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -332,6 +332,7 @@ void QMLRewriter::dump(const ASTPath &path)
|
|||||||
{
|
{
|
||||||
qDebug() << "AST path with" << path.size() << "node(s):";
|
qDebug() << "AST path with" << path.size() << "node(s):";
|
||||||
for (int i = 0; i < path.size(); ++i) {
|
for (int i = 0; i < path.size(); ++i) {
|
||||||
qDebug() << qPrintable(QString(i + 1, QLatin1Char('-'))) << typeid(*path.at(i)).name();
|
auto node = path.at(i);
|
||||||
|
qDebug().noquote() << QString(i + 1, QLatin1Char('-')) << typeid(*node).name();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user