Commit bd195295 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Fix warning

Arguments of typeid should not have side effects.

Change-Id: I197ee77e0757fcb961e62fa7bdff36e7d58da12a
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 28b68200
......@@ -332,6 +332,7 @@ void QMLRewriter::dump(const ASTPath &path)
{
qDebug() << "AST path with" << path.size() << "node(s):";
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();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment