Merge Errors

- Fixed errors from merge mistakes.
This commit is contained in:
Paul Beckingham 2014-01-07 19:23:54 -05:00
parent 98f740e9d1
commit 9c41610f56
4 changed files with 12 additions and 12 deletions

View file

@ -28,7 +28,6 @@ set (task_SRCS A3.cpp A3.h
OldDuration.cpp OldDuration.h
Path.cpp Path.h
RX.cpp RX.h
Socket.cpp Socket.h
TDB2.cpp TDB2.h
Task.cpp Task.h
Taskmod.cpp Taskmod.h

View file

@ -1880,7 +1880,7 @@ void Task::modify (
long l = (long) strtod (result.c_str (), NULL);
if (labs (l) < 5 * 365 * 86400)
{
Duration dur (value);
OldDuration dur (value);
Date now;
now += l;
(*this).set (name, now.toEpochString ());
@ -1892,7 +1892,7 @@ void Task::modify (
}
}
// Durations too.
// OldDurations too.
else if (name == "recur" ||
column->type () == "duration")
{
@ -1905,7 +1905,7 @@ void Task::modify (
std::string result = e.evalExpression ((*this));
context.debug (std::string ("Eval '") + value + "' --> '" + result + "'");
Duration d (value);
OldDuration d (value);
// Deliberately storing the 'raw' value, which is necessary for
// durations like 'weekday'..

View file

@ -125,7 +125,7 @@ void ColumnDate::measure (Task& task, unsigned int& minimum, unsigned int& maxim
{
Date now;
if (date > now)
minimum = maximum = Duration (date - now).format ().length ();
minimum = maximum = OldDuration (date - now).format ().length ();
}
else
throw format (STRING_COLUMN_BAD_FORMAT, _name, _style);
@ -207,7 +207,7 @@ void ColumnDate::render (
lines.push_back (
color.colorize (
rightJustify (
Duration (date - now).format (), width)));
OldDuration (date - now).format (), width)));
else
lines.push_back ("");
}