From 03e53ceaf2b44e8237a63a8fbdb4f6ccd0cbc72c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 11 Sep 2011 23:06:51 -0400 Subject: [PATCH] Miscellaneous - Minor edits of little consequence. --- PUNCHLIST | 5 ++--- src/Context.cpp | 14 ++++++++++++++ src/commands/CmdAdd.cpp | 1 + 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/PUNCHLIST b/PUNCHLIST index ce6eda66a..8818a564c 100644 --- a/PUNCHLIST +++ b/PUNCHLIST @@ -1,11 +1,10 @@ Beta1 Punch List -- Expression date math -- Type-aware Command::modify_task code +- Working dependencies - DOM access - Working merge command - task.1 man page that is accurate - taskrc.5 man page that is accurate -- 42 failing unit tests (arbitrary non-zero number) +- 42 or fewer failing unit tests (arbitrary non-zero number) Beta 2/3 Punch List - Task server integration diff --git a/src/Context.cpp b/src/Context.cpp index 4ae1d7294..392247608 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -559,6 +559,20 @@ void Context::clear () tdb2.clear (); a3.clear (); + // Eliminate the command objects. + std::map ::iterator com; + for (com = commands.begin (); com != commands.end (); ++com) + delete com->second; + + commands.clear (); + + // Eliminate the column objects. + std::map ::iterator col; + for (col = columns.begin (); col != columns.end (); ++col) + delete col->second; + + columns.clear (); + clearMessages (); } diff --git a/src/commands/CmdAdd.cpp b/src/commands/CmdAdd.cpp index 1cf1df207..f8cc9e47f 100644 --- a/src/commands/CmdAdd.cpp +++ b/src/commands/CmdAdd.cpp @@ -60,6 +60,7 @@ int CmdAdd::execute (std::string& output) if (context.verbose ("new-id")) output = format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n"; + // TODO verbosity token. context.footnote (onProjectChange (task)); context.tdb2.commit ();