From 49f7c084574298dc04bb7a16b8faac313324d623 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 28 Mar 2016 22:49:14 -0400 Subject: [PATCH] CmdDefault: Migrated to intervalSummarize --- src/commands/CmdDefault.cpp | 3 ++- src/timew.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdDefault.cpp b/src/commands/CmdDefault.cpp index adf4cd31..63c1978c 100644 --- a/src/commands/CmdDefault.cpp +++ b/src/commands/CmdDefault.cpp @@ -26,6 +26,7 @@ #include #include +#include #include //////////////////////////////////////////////////////////////////////////////// @@ -39,7 +40,7 @@ int CmdDefault (Rules& rules, Database& database) auto interval = database.getLatestInterval (); if (interval.isStarted () && ! interval.isEnded ()) std::cout << "\n" - << database.getLatestInterval ().summarize () + << intervalSummarize (rules, database.getLatestInterval ()) << "\n"; else std::cout << "\n" diff --git a/src/timew.h b/src/timew.h index f4d0e4a9..a1115b00 100644 --- a/src/timew.h +++ b/src/timew.h @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -44,6 +45,7 @@ std::vector getKeywords (const std::vector &); // helper.cpp Color tagColor (const Rules&, const std::string&); +std::string intervalSummarize (const Rules&, const Interval&); // utiƀ.cpp std::string osName ();