diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-25 10:30:05 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-25 10:30:05 +0100 |
commit | 7211e9e3bab79ae5644cebe38996a028fcaabc8a (patch) | |
tree | 90d0bd24796af6b3962097226f233611a23c12a2 /akonadish/syntaxtree.cpp | |
parent | 8b397cec29460e2cb53b9be02b4e53da9cce60c9 (diff) | |
download | sink-7211e9e3bab79ae5644cebe38996a028fcaabc8a.tar.gz sink-7211e9e3bab79ae5644cebe38996a028fcaabc8a.zip |
const&
Diffstat (limited to 'akonadish/syntaxtree.cpp')
-rw-r--r-- | akonadish/syntaxtree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/akonadish/syntaxtree.cpp b/akonadish/syntaxtree.cpp index 36a7f41..b571904 100644 --- a/akonadish/syntaxtree.cpp +++ b/akonadish/syntaxtree.cpp | |||
@@ -126,7 +126,7 @@ Syntax::List SyntaxTree::nearestSyntax(const QStringList &words, const QString & | |||
126 | Syntax lastFullSyntax; | 126 | Syntax lastFullSyntax; |
127 | 127 | ||
128 | while (wordIt.hasNext()) { | 128 | while (wordIt.hasNext()) { |
129 | QString word = wordIt.next(); | 129 | const QString &word = wordIt.next(); |
130 | while (syntaxIt.hasNext()) { | 130 | while (syntaxIt.hasNext()) { |
131 | const Syntax &syntax = syntaxIt.next(); | 131 | const Syntax &syntax = syntaxIt.next(); |
132 | if (word == syntax.keyword) { | 132 | if (word == syntax.keyword) { |