- Made alternate fix to CmdUrgency.cpp, to avoid the ambiguity around
  the format() signatures (thanks to Owen Clarke).
This commit is contained in:
Paul Beckingham 2012-02-23 20:48:01 -05:00
parent 87853bdd78
commit a495b05d6b

View file

@ -64,14 +64,21 @@ int CmdUrgency::execute (std::string& output)
std::stringstream out;
std::vector <Task>::iterator task;
for (task = filtered.begin (); task != filtered.end (); ++task)
{
if (task->id)
{
out << format (STRING_CMD_URGENCY_RESULT,
task->id, task->urgency ())
<< "\n";
}
else
{
std::string uuid = task->get ("uuid");
out << format (STRING_CMD_URGENCY_RESULT,
task->get ("uuid"), task->urgency ())
uuid, task->urgency ())
<< "\n";
}
}
output = out.str ();
return 0;