From f3f6cd260ad960de5dd5eb6904497f61dafe3514 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 14 Aug 2011 10:04:04 -0400 Subject: [PATCH] E9 - Typo - In one of the dumbest typos yet, I entered "fasle" instead of "false" and the copy/pasted it around. --- src/A3.cpp | 4 ++++ src/E9.cpp | 8 ++++---- src/commands/Command.cpp | 19 ------------------- 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/src/A3.cpp b/src/A3.cpp index 205123012..2bf66322a 100644 --- a/src/A3.cpp +++ b/src/A3.cpp @@ -715,6 +715,8 @@ const A3 A3::tokenize (const A3& input) const found_something_after_sequence = true; } + // Must be higher than number. + // Must be higher than operator. else if (n.getDate (date_format, t)) { output.push_back (Arg (Date (t).toString (date_format), "date")); @@ -722,6 +724,8 @@ const A3 A3::tokenize (const A3& input) const found_something_after_sequence = true; } + // Must be higher than number. + // Must be higher than operator. else if (is_duration (n, s)) { output.push_back (Arg (s, "duration")); diff --git a/src/E9.cpp b/src/E9.cpp index 881a100dc..9d9066712 100644 --- a/src/E9.cpp +++ b/src/E9.cpp @@ -301,7 +301,7 @@ void E9::operator_lt (Term& result, Term& left, Term& right) { result._raw = result._value = (left._value < right._value) ? "true" - : "fasle"; + : "false"; } result._category = "bool"; @@ -324,7 +324,7 @@ void E9::operator_lte (Term& result, Term& left, Term& right) { result._raw = result._value = (left._value <= right._value) ? "true" - : "fasle"; + : "false"; } result._category = "bool"; @@ -347,7 +347,7 @@ void E9::operator_gte (Term& result, Term& left, Term& right) { result._raw = result._value = (left._value >= right._value) ? "true" - : "fasle"; + : "false"; } result._category = "bool"; @@ -369,7 +369,7 @@ void E9::operator_gt (Term& result, Term& left, Term& right) { result._raw = result._value = (left._value > right._value) ? "true" - : "fasle"; + : "false"; } result._category = "bool"; diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 882e03ba3..45a6a39ff 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -463,18 +463,6 @@ void Command::modify_task ( task.removeTag (value); } -/* - // Words and operators are aggregated into a description. - else if (arg->_category == "word" || - arg->_category == "op") - { - if (description.length ()) - description += " "; - - description += arg->_raw; - } -*/ - // Substitutions. else if (arg->_category == "subst") { @@ -485,13 +473,6 @@ void Command::modify_task ( task.substitute (from, to, global); } -/* - // Any additional argument types are indicative of a failure in - // A3::extract_modifications. - else - throw format (STRING_CMD_MOD_UNEXPECTED, arg->_raw); -*/ - // Anything else is essentially downgraded to 'word' and considered part of // the description. else