summaryrefslogtreecommitdiffstats
path: root/akonadi2_cli/repl/replStates.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2015-12-23 20:31:25 +0100
committerAaron Seigo <aseigo@kde.org>2015-12-23 20:31:25 +0100
commit5e9c1172ca196bdc8bcdc842e54efc5a74908fff (patch)
tree102ecf6f74bd94e0c8eaf09acc3006b241d49135 /akonadi2_cli/repl/replStates.cpp
parent26c510ace968af7d4c82c1f192bc8cdcb3505910 (diff)
downloadsink-5e9c1172ca196bdc8bcdc842e54efc5a74908fff.tar.gz
sink-5e9c1172ca196bdc8bcdc842e54efc5a74908fff.zip
move Syntax out of SyntraxTree
Diffstat (limited to 'akonadi2_cli/repl/replStates.cpp')
-rw-r--r--akonadi2_cli/repl/replStates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/akonadi2_cli/repl/replStates.cpp b/akonadi2_cli/repl/replStates.cpp
index 0273aa2..0179779 100644
--- a/akonadi2_cli/repl/replStates.cpp
+++ b/akonadi2_cli/repl/replStates.cpp
@@ -149,7 +149,7 @@ static char **akonadi2_cli_tab_completion(const char *text, int start, int end)
149 149
150static char *akonadi2_cli_next_tab_complete_match(const char *text, int state) 150static char *akonadi2_cli_next_tab_complete_match(const char *text, int state)
151{ 151{
152 QVector<SyntaxTree::Syntax> nearest = SyntaxTree::self()->nearestSyntax(tab_completion_full_state, QString(text)); 152 SyntaxTree::SyntaxList nearest = SyntaxTree::self()->nearestSyntax(tab_completion_full_state, QString(text));
153 153
154 if (nearest.size() > state) { 154 if (nearest.size() > state) {
155 return qstrdup(nearest[state].keyword.toUtf8()); 155 return qstrdup(nearest[state].keyword.toUtf8());