mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Cleanup: Don't use string literals when character literals are needed
This commit is contained in:
parent
95f4989f77
commit
8922728888
27 changed files with 122 additions and 122 deletions
|
@ -231,7 +231,7 @@ int CmdInfo::execute (std::string& output)
|
|||
age = ISO8601p (now - dt).formatVague ();
|
||||
}
|
||||
|
||||
view.set (row, 1, entry + " (" + age + ")");
|
||||
view.set (row, 1, entry + " (" + age + ')');
|
||||
|
||||
// wait
|
||||
if (task.has ("wait"))
|
||||
|
@ -289,7 +289,7 @@ int CmdInfo::execute (std::string& output)
|
|||
|
||||
ISO8601d mod (task.get_date ("modified"));
|
||||
std::string age = ISO8601p (now - mod).formatVague ();
|
||||
view.set (row, 1, mod.toString (dateformat) + " (" + age + ")");
|
||||
view.set (row, 1, mod.toString (dateformat) + " (" + age + ')');
|
||||
}
|
||||
|
||||
// tags ...
|
||||
|
@ -399,8 +399,8 @@ int CmdInfo::execute (std::string& output)
|
|||
context.columns.find (att) == context.columns.end ())
|
||||
{
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, "[" + att);
|
||||
view.set (row, 1, task.get (att) + "]");
|
||||
view.set (row, 0, '[' + att);
|
||||
view.set (row, 1, task.get (att) + ']');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue