mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Code Sharing
- Cleaned up the #ifdef in Task.cpp for sharing with taskd. (cherry picked from commit af94ac2e12d84fddb735d6931aaf2c46176c794c)
This commit is contained in:
parent
530e9c0118
commit
dd0b01e487
2 changed files with 4 additions and 4 deletions
|
@ -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 ("");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue