Miscellaneous

- Minor edits of little consequence.
This commit is contained in:
Paul Beckingham 2011-09-11 23:06:51 -04:00
parent 147dd61758
commit 03e53ceaf2
3 changed files with 17 additions and 3 deletions

View file

@ -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

View file

@ -559,6 +559,20 @@ void Context::clear ()
tdb2.clear ();
a3.clear ();
// Eliminate the command objects.
std::map <std::string, Command*>::iterator com;
for (com = commands.begin (); com != commands.end (); ++com)
delete com->second;
commands.clear ();
// Eliminate the column objects.
std::map <std::string, Column*>::iterator col;
for (col = columns.begin (); col != columns.end (); ++col)
delete col->second;
columns.clear ();
clearMessages ();
}

View file

@ -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 ();