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:
committed by
Tomas Babej
parent
3a00956144
commit
dede40bc4e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user