mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task
- Renamed 'mods_required' argument to the more accurate 'text_required' in the ::modify method.
This commit is contained in:
parent
f3bc606344
commit
c39285b61c
2 changed files with 3 additions and 3 deletions
|
@ -1934,7 +1934,7 @@ float Task::urgency_blocking () const
|
||||||
// well as reducing the object depdendencies of Task.
|
// well as reducing the object depdendencies of Task.
|
||||||
//
|
//
|
||||||
// It came from the Command base object, but doesn't really belong there either.
|
// It came from the Command base object, but doesn't really belong there either.
|
||||||
void Task::modify (modType type, bool mods_required /* = false */)
|
void Task::modify (modType type, bool text_required /* = false */)
|
||||||
{
|
{
|
||||||
std::string text = "";
|
std::string text = "";
|
||||||
Tree* tree = context.parser.tree ();
|
Tree* tree = context.parser.tree ();
|
||||||
|
@ -2186,7 +2186,7 @@ void Task::modify (modType type, bool mods_required /* = false */)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (modCount == 0 && mods_required)
|
else if (modCount == 0 && text_required)
|
||||||
{
|
{
|
||||||
throw std::string (STRING_CMD_MODIFY_NEED_TEXT);
|
throw std::string (STRING_CMD_MODIFY_NEED_TEXT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,7 +154,7 @@ public:
|
||||||
float urgency ();
|
float urgency ();
|
||||||
|
|
||||||
enum modType {modReplace, modPrepend, modAppend, modAnnotate};
|
enum modType {modReplace, modPrepend, modAppend, modAnnotate};
|
||||||
void modify (modType, bool mods_required = false);
|
void modify (modType, bool text_required = false);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int determineVersion (const std::string&);
|
int determineVersion (const std::string&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue