diff --git a/src/commands/CmdContinue.cpp b/src/commands/CmdContinue.cpp index b11417e0..9a954487 100644 --- a/src/commands/CmdContinue.cpp +++ b/src/commands/CmdContinue.cpp @@ -25,10 +25,13 @@ //////////////////////////////////////////////////////////////////////////////// #include +#include #include //////////////////////////////////////////////////////////////////////////////// -int CmdContinue () +int CmdContinue ( + Database& database, + Log& log) { std::cout << "[continue: allows resuming a stopped interval]\n"; diff --git a/src/commands/commands.h b/src/commands/commands.h index bfc1c375..add8f937 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -36,7 +36,7 @@ int CmdClear ( ); int CmdConfig ( ); -int CmdContinue ( ); +int CmdContinue ( Database&, Log&); int CmdDefault ( Rules&, Database& ); int CmdDefine ( Rules& ); int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&); diff --git a/src/init.cpp b/src/init.cpp index d28f1ec4..67abb650 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -192,7 +192,7 @@ int dispatchCommand ( // command to fn mapping. if (closeEnough (allCommands[0], args[1], 2)) status = CmdClear ( ); else if (closeEnough (allCommands[1], args[1], 2)) status = CmdConfig ( ); - else if (closeEnough (allCommands[2], args[1], 2)) status = CmdContinue ( ); + else if (closeEnough (allCommands[2], args[1], 2)) status = CmdContinue ( database, log); else if (closeEnough (allCommands[3], args[1], 2)) status = CmdDefine ( rules ); else if (closeEnough (allCommands[4], args[1], 2)) status = CmdDiagnostics ( rules, database, extensions, log); else if (closeEnough (allCommands[5], args[1], 2)) status = CmdExport ( database );