From 894e62a6b0e53f8be88034e4b5215e1a8cf3c394 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 28 Mar 2016 01:22:08 -0400 Subject: [PATCH] init: Propagated rules to CmdTags --- src/commands/CmdTags.cpp | 2 +- src/commands/commands.h | 2 +- src/init.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/CmdTags.cpp b/src/commands/CmdTags.cpp index 927f70d7..482e42a5 100644 --- a/src/commands/CmdTags.cpp +++ b/src/commands/CmdTags.cpp @@ -30,7 +30,7 @@ #include //////////////////////////////////////////////////////////////////////////////// -int CmdTags (Database& database, Log& log) +int CmdTags (Rules& rules, Database& database, Log& log) { // Generate a unique, ordered list of tags. std::vector tags; diff --git a/src/commands/commands.h b/src/commands/commands.h index d55df802..929358f8 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -50,7 +50,7 @@ int CmdImport ( int CmdReport (const std::vector &, Rules&, Database&, Extensions&, Log&); int CmdStart (const std::vector &, Database&, Log&); int CmdStop (const std::vector &, Database&, Log&); -int CmdTags ( Database&, Log&); +int CmdTags ( Rules&, Database&, Log&); int CmdTrack ( ); int CmdUndo ( ); diff --git a/src/init.cpp b/src/init.cpp index 98e3a1cb..28cad991 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -204,7 +204,7 @@ int dispatchCommand ( else if (matches[0] == allCommands[11]) status = CmdReport (args, rules, database, extensions, log); else if (matches[0] == allCommands[12]) status = CmdStart (args, database, log); else if (matches[0] == allCommands[13]) status = CmdStop (args, database, log); - else if (matches[0] == allCommands[14]) status = CmdTags ( database, log); + else if (matches[0] == allCommands[14]) status = CmdTags ( rules, database, log); else if (matches[0] == allCommands[15]) status = CmdTrack ( ); else if (matches[0] == allCommands[16]) status = CmdUndo ( ); }