Code Cleanup

- Renamed T2.h -> Task.h, T2.cpp -> Task.cpp.  This permanently avoids
  the problem where g++ on OpenBSD 4.5 fails because of the T class,
  which probably conflicts with C++ templates.  Who knows.
This commit is contained in:
Paul Beckingham
2009-06-10 21:35:07 -04:00
parent 71f4749d56
commit d7da182450
12 changed files with 83 additions and 83 deletions

View File

@@ -154,7 +154,7 @@ void TDB2::unlock ()
////////////////////////////////////////////////////////////////////////////////
// Returns number of filtered tasks.
int TDB2::load (std::vector <T2>& tasks, Filter& filter)
int TDB2::load (std::vector <Task>& tasks, Filter& filter)
{
// Note: tasks.clear () is deliberately not called, to allow the combination
// of multiple files.
@@ -178,7 +178,7 @@ int TDB2::load (std::vector <T2>& tasks, Filter& filter)
{
// TODO Add hidden attribute indicating source?
line[length - 1] = '\0'; // Kill \n
T2 task (line);
Task task (line);
if (filter.pass (task))
tasks.push_back (task);
}
@@ -198,7 +198,7 @@ int TDB2::load (std::vector <T2>& tasks, Filter& filter)
{
// TODO Add hidden attribute indicating source?
line[length - 1] = '\0'; // Kill \n
T2 task (line);
Task task (line);
if (filter.pass (task))
tasks.push_back (task);
}
@@ -220,7 +220,7 @@ int TDB2::load (std::vector <T2>& tasks, Filter& filter)
////////////////////////////////////////////////////////////////////////////////
// TODO Write to transaction log.
void TDB2::add (T2& after)
void TDB2::add (Task& after)
{
throw std::string ("unimplemented TDB2::add");
@@ -230,7 +230,7 @@ void TDB2::add (T2& after)
////////////////////////////////////////////////////////////////////////////////
// TODO Write to transaction log.
void TDB2::update (T2& before, T2& after)
void TDB2::update (Task& before, Task& after)
{
throw std::string ("unimplemented TDB2::update");
}