From f2fbbf81bf7fefc52a3d690f66e5bcb57252dcf8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 22 Mar 2016 00:36:38 -0400 Subject: [PATCH] init: Propagated rules and database to CmdDefault --- src/commands/CmdDefault.cpp | 3 ++- src/commands/commands.h | 2 +- src/init.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/commands/CmdDefault.cpp b/src/commands/CmdDefault.cpp index a950f6a3..44090c14 100644 --- a/src/commands/CmdDefault.cpp +++ b/src/commands/CmdDefault.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////////////////////////// #include +#include #include //////////////////////////////////////////////////////////////////////////////// -int CmdDefault () +int CmdDefault (Rules& rules, Database& database) { std::cout << "[default command or current interval summary]\n"; diff --git a/src/commands/commands.h b/src/commands/commands.h index 9bbd1160..d98baba6 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -37,7 +37,7 @@ int CmdClear ( ); int CmdConfig ( ); int CmdContinue ( ); -int CmdDefault ( ); +int CmdDefault ( Rules&, Database& ); int CmdDefine ( Rules& ); int CmdDiagnostics ( Rules&, Database&, Extensions&, Log&); int CmdExport ( ); diff --git a/src/init.cpp b/src/init.cpp index 8d07e76a..22ba50db 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -224,7 +224,7 @@ int dispatchCommand ( } else if (args.size () == 1) { - status = CmdDefault (); + status = CmdDefault (rules, database); } return status;