mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 10:37:19 +02:00
Bug #938
- Made alternate fix to CmdUrgency.cpp, to avoid the ambiguity around the format() signatures (thanks to Owen Clarke).
This commit is contained in:
parent
87853bdd78
commit
a495b05d6b
1 changed files with 8 additions and 1 deletions
|
@ -64,14 +64,21 @@ int CmdUrgency::execute (std::string& output)
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
std::vector <Task>::iterator task;
|
std::vector <Task>::iterator task;
|
||||||
for (task = filtered.begin (); task != filtered.end (); ++task)
|
for (task = filtered.begin (); task != filtered.end (); ++task)
|
||||||
|
{
|
||||||
if (task->id)
|
if (task->id)
|
||||||
|
{
|
||||||
out << format (STRING_CMD_URGENCY_RESULT,
|
out << format (STRING_CMD_URGENCY_RESULT,
|
||||||
task->id, task->urgency ())
|
task->id, task->urgency ())
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
std::string uuid = task->get ("uuid");
|
||||||
out << format (STRING_CMD_URGENCY_RESULT,
|
out << format (STRING_CMD_URGENCY_RESULT,
|
||||||
task->get ("uuid"), task->urgency ())
|
uuid, task->urgency ())
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
output = out.str ();
|
output = out.str ();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue