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:
Thomas Hartmann
2016-04-22 14:50:01 +02:00
parent 28b6820026
commit bd195295d9

View File

@@ -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();
} }
} }