diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-10-18 15:34:52 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2017-10-25 09:19:19 +0000 |
commit | 5eb508a31717c75d804cfb55e46e867c19ae58d2 (patch) | |
tree | 014bdba5e6b523626f0f03317162fddf6e40fde4 /src/tools/moc | |
parent | ecd183455b8039ee15b9d51fd1111992af19ed1c (diff) |
Fix clazy-strict-iterators
Change-Id: I9276a85f0a8061b2636687cf694b8ed1abaa18b8
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/tools/moc')
-rw-r--r-- | src/tools/moc/preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/moc/preprocessor.cpp b/src/tools/moc/preprocessor.cpp index 9a06fb38d0..a6725af924 100644 --- a/src/tools/moc/preprocessor.cpp +++ b/src/tools/moc/preprocessor.cpp @@ -992,7 +992,7 @@ static void mergeStringLiterals(Symbols *_symbols) mergeSymbolLexem.reserve(literalsLength); mergeSymbolLexem.append('"'); mergeSymbolLexem.append(mergeSymbolOriginalLexem); - for (Symbols::const_iterator j = mergeSymbol + 1; j != i; ++j) + for (Symbols::iterator j = mergeSymbol + 1; j != i; ++j) mergeSymbolLexem.append(j->lex.constData() + j->from + 1, j->len - 2); // append j->unquotedLexem() mergeSymbolLexem.append('"'); mergeSymbol->len = mergeSymbol->lex.length(); |