ColTypeNumeric: Code cleanup
This commit is contained in:
@@ -80,10 +80,10 @@ void ColumnTypeNumeric::modify (Task& task, const std::string& value)
|
|||||||
std::string label = " [1;37;43mMODIFICATION[0m ";
|
std::string label = " [1;37;43mMODIFICATION[0m ";
|
||||||
context.debug (label + _name + " <-- '" + evaluatedValue.get_string () + "' <-- '" + value + "'");
|
context.debug (label + _name + " <-- '" + evaluatedValue.get_string () + "' <-- '" + value + "'");
|
||||||
|
|
||||||
// If the result is not readily convertible to a numeric value,
|
// If the result is not readily convertible to a numeric value, then this is
|
||||||
// then this is an error.
|
// an error.
|
||||||
if (evaluatedValue.type () == Variant::type_string)
|
if (evaluatedValue.type () == Variant::type_string)
|
||||||
throw format (STRING_UDA_NUMERIC, evaluatedValue.get_string ());
|
throw format (STRING_UDA_NUMERIC, evaluatedValue.get_string ());
|
||||||
|
|
||||||
task.set (_name, evaluatedValue);
|
task.set (_name, evaluatedValue);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user