From 071f4ef0122a8bfceeda9a10b41e85ad9a34a28d Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Wed, 23 Dec 2015 11:43:37 +0100 Subject: vastly simplify by getting rid of Module as a base class just a move slightly more towards functional --- akonadi2_cli/repl/replStates.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'akonadi2_cli/repl/replStates.cpp') 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) if (m_complete) { //emit output("Processing ... " + command); const QStringList commands = command.split(" "); - Module::run(commands); + Module::self()->run(commands); emit completed(); } } @@ -143,7 +143,7 @@ static char **akonadi2_cli_tab_completion(const char *text, int start, int end) static char *akonadi2_cli_next_tab_complete_match(const char *text, int state) { - QVector nearest = Module::nearestSyntax(tab_completion_full_state, QString(text)); + QVector nearest = Module::self()->nearestSyntax(tab_completion_full_state, QString(text)); if (nearest.size() > state) { return qstrdup(nearest[state].keyword.toUtf8()); -- cgit v1.2.3