Replace direct Task.data access with a temp getter (syntactic refactor)

Now this getter, `data_removeme`, can easily be grepped out and
replaced, one usage at a time in small PRs.
This commit is contained in:
Dustin J. Mitchell
2021-11-18 02:08:16 +00:00
committed by Tomas Babej
parent 3a00956144
commit dede40bc4e
10 changed files with 29 additions and 26 deletions

View File

@@ -74,7 +74,7 @@ public:
enum dateState {dateNotDue, dateAfterToday, dateLaterToday, dateEarlierToday, dateBeforeToday};
// Public data.
std::map <std::string, std::string> data {};
const std::map <std::string, std::string> &data_removeme () const { return data; };
int id {0};
float urgency_value {0.0};
bool recalc_urgency {true};
@@ -187,6 +187,9 @@ private:
void fixDependsAttribute ();
void fixTagsAttribute ();
protected:
std::map <std::string, std::string> data {};
public:
float urgency_project () const;
float urgency_active () const;