From 774fa4941284f8b9257f9659c8d77e4c10545c4e Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 19 Apr 2011 15:42:14 +0200 Subject: Fix more krazy warnings. --- src/libs/qmljs/qmljscodeformatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libs/qmljs/qmljscodeformatter.cpp') diff --git a/src/libs/qmljs/qmljscodeformatter.cpp b/src/libs/qmljs/qmljscodeformatter.cpp index c0049ec307..3055ac9f33 100644 --- a/src/libs/qmljs/qmljscodeformatter.cpp +++ b/src/libs/qmljs/qmljscodeformatter.cpp @@ -940,7 +940,7 @@ void CodeFormatter::dump() const qDebug() << "Current token index" << m_tokenIndex; qDebug() << "Current state:"; - foreach (State s, m_currentState) { + foreach (const State &s, m_currentState) { qDebug() << metaEnum.valueToKey(s.type) << s.savedIndentDepth; } qDebug() << "Current indent depth:" << m_indentDepth; -- cgit v1.2.1