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

@@ -79,7 +79,7 @@ int CmdModify::execute (std::string&)
Task before (task);
task.modify (Task::modReplace);
if (before.data != task.data)
if (before.data_removeme () != task.data_removeme ())
{
// Abort if change introduces inconsistencies.
checkConsistency(before, task);