Code Sharing
- Cleaned up the #ifdef in Task.cpp for sharing with taskd. (cherry picked from commit af94ac2e12d84fddb735d6931aaf2c46176c794c)
This commit is contained in:
@@ -1753,9 +1753,9 @@ int TDB2::next_id ()
|
||||
const std::vector <Task> TDB2::all_tasks ()
|
||||
{
|
||||
std::vector <Task> all (pending._tasks.size () +
|
||||
pending._added_tasks.size () +
|
||||
completed._tasks.size () +
|
||||
completed._added_tasks.size ());
|
||||
pending._added_tasks.size () +
|
||||
completed._tasks.size () +
|
||||
completed._added_tasks.size ());
|
||||
all = pending.get_tasks ();
|
||||
|
||||
std::vector <Task> extra (completed._tasks.size () +
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
extern Context context;
|
||||
|
||||
static const float epsilon = 0.000001;
|
||||
#endif
|
||||
|
||||
std::string Task::defaultProject = "";
|
||||
std::string Task::defaultPriority = "";
|
||||
@@ -79,7 +80,6 @@ float Task::urgencyNextCoefficient = 0.0;
|
||||
float Task::urgencyDueCoefficient = 0.0;
|
||||
float Task::urgencyBlockingCoefficient = 0.0;
|
||||
float Task::urgencyAgeCoefficient = 0.0;
|
||||
#endif
|
||||
|
||||
static const std::string dummy ("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user