From a495b05d6b402e4e06e0e327e26c194c7d3ef380 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 23 Feb 2012 20:48:01 -0500 Subject: [PATCH] Bug #938 - Made alternate fix to CmdUrgency.cpp, to avoid the ambiguity around the format() signatures (thanks to Owen Clarke). --- src/commands/CmdUrgency.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdUrgency.cpp b/src/commands/CmdUrgency.cpp index 14f153f47..0145adaa6 100644 --- a/src/commands/CmdUrgency.cpp +++ b/src/commands/CmdUrgency.cpp @@ -64,14 +64,21 @@ int CmdUrgency::execute (std::string& output) std::stringstream out; std::vector ::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;