forked from qt-creator/qt-creator
Fix more krazy warnings.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -204,7 +204,7 @@ QString LineInfo::trimmedCodeLine(const QString &t)
|
||||
if (yyLinizerState.leftBraceFollows && !text.isEmpty() && text.at(0).isUpper()) {
|
||||
int i = index;
|
||||
|
||||
// skip any preceeding 'identifier.'; these could appear in both cases
|
||||
// skip any preceding 'identifier.'; these could appear in both cases
|
||||
while (i >= 2) {
|
||||
const Token &prev = yyLinizerState.tokens.at(i-1);
|
||||
const Token &prevPrev = yyLinizerState.tokens.at(i-2);
|
||||
|
||||
Reference in New Issue
Block a user