From c39285b61c3c7a429edc4a677693ae66a609a2c3 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 27 May 2014 00:37:31 -0400 Subject: [PATCH] Task - Renamed 'mods_required' argument to the more accurate 'text_required' in the ::modify method. --- src/Task.cpp | 4 ++-- src/Task.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 698b97bd6..e96f12365 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1934,7 +1934,7 @@ float Task::urgency_blocking () const // well as reducing the object depdendencies of Task. // // 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 = ""; Tree* tree = context.parser.tree (); @@ -2186,7 +2186,7 @@ void Task::modify (modType type, bool mods_required /* = false */) break; } } - else if (modCount == 0 && mods_required) + else if (modCount == 0 && text_required) { throw std::string (STRING_CMD_MODIFY_NEED_TEXT); } diff --git a/src/Task.h b/src/Task.h index b115e5d7b..ec7bd346a 100644 --- a/src/Task.h +++ b/src/Task.h @@ -154,7 +154,7 @@ public: float urgency (); enum modType {modReplace, modPrepend, modAppend, modAnnotate}; - void modify (modType, bool mods_required = false); + void modify (modType, bool text_required = false); private: int determineVersion (const std::string&);