diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-23 11:43:37 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-23 11:43:37 +0100 |
commit | 071f4ef0122a8bfceeda9a10b41e85ad9a34a28d (patch) | |
tree | e5d1cb7efcac5eb16f4848619ff06142906b6cea /akonadi2_cli/repl | |
parent | 255d73af197faf8437343abc10bd98cca2057a1e (diff) | |
download | sink-071f4ef0122a8bfceeda9a10b41e85ad9a34a28d.tar.gz sink-071f4ef0122a8bfceeda9a10b41e85ad9a34a28d.zip |
vastly simplify by getting rid of Module as a base class
just a move slightly more towards functional
Diffstat (limited to 'akonadi2_cli/repl')
-rw-r--r-- | akonadi2_cli/repl/replStates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/akonadi2_cli/repl/replStates.cpp b/akonadi2_cli/repl/replStates.cpp index e87dd5f..efa1353 100644 --- a/akonadi2_cli/repl/replStates.cpp +++ b/akonadi2_cli/repl/replStates.cpp | |||
@@ -107,7 +107,7 @@ void EvalState::onEntry(QEvent *event) | |||
107 | if (m_complete) { | 107 | if (m_complete) { |
108 | //emit output("Processing ... " + command); | 108 | //emit output("Processing ... " + command); |
109 | const QStringList commands = command.split(" "); | 109 | const QStringList commands = command.split(" "); |
110 | Module::run(commands); | 110 | Module::self()->run(commands); |
111 | emit completed(); | 111 | emit completed(); |
112 | } | 112 | } |
113 | } | 113 | } |
@@ -143,7 +143,7 @@ static char **akonadi2_cli_tab_completion(const char *text, int start, int end) | |||
143 | 143 | ||
144 | static char *akonadi2_cli_next_tab_complete_match(const char *text, int state) | 144 | static char *akonadi2_cli_next_tab_complete_match(const char *text, int state) |
145 | { | 145 | { |
146 | QVector<Module::Syntax> nearest = Module::nearestSyntax(tab_completion_full_state, QString(text)); | 146 | QVector<Module::Syntax> nearest = Module::self()->nearestSyntax(tab_completion_full_state, QString(text)); |
147 | 147 | ||
148 | if (nearest.size() > state) { | 148 | if (nearest.size() > state) { |
149 | return qstrdup(nearest[state].keyword.toUtf8()); | 149 | return qstrdup(nearest[state].keyword.toUtf8()); |