Code Cleanup

- Indentation.
This commit is contained in:
Louis-Claude Canon 2012-07-26 15:23:25 +02:00 committed by Paul Beckingham
parent fc45484069
commit 154d99385a

View file

@ -216,14 +216,12 @@ static void colorizeDue (Task& task, const Color& base, Color& c)
{ {
if (task.has ("due")) if (task.has ("due"))
{ {
Task::status status = task.getStatus (); Task::status status = task.getStatus ();
if (status != Task::completed && if (status != Task::completed &&
status != Task::deleted) status != Task::deleted &&
{ getDueState (task.get ("due")) == 1)
if (getDueState (task.get ("due")) == 1)
c.blend (base); c.blend (base);
} }
}
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -231,14 +229,12 @@ static void colorizeDueToday (Task& task, const Color& base, Color& c)
{ {
if (task.has ("due")) if (task.has ("due"))
{ {
Task::status status = task.getStatus (); Task::status status = task.getStatus ();
if (status != Task::completed && if (status != Task::completed &&
status != Task::deleted) status != Task::deleted &&
{ getDueState (task.get ("due")) == 2)
if (getDueState (task.get ("due")) == 2)
c.blend (base); c.blend (base);
} }
}
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -246,14 +242,12 @@ static void colorizeOverdue (Task& task, const Color& base, Color& c)
{ {
if (task.has ("due")) if (task.has ("due"))
{ {
Task::status status = task.getStatus (); Task::status status = task.getStatus ();
if (status != Task::completed && if (status != Task::completed &&
status != Task::deleted) status != Task::deleted &&
{ getDueState (task.get ("due")) == 3)
if (getDueState (task.get ("due")) == 3)
c.blend (base); c.blend (base);
} }
}
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////