Cleanup: Don't use string literals when character literals are needed

This commit is contained in:
Paul Beckingham 2016-10-14 23:11:28 -04:00
parent 95f4989f77
commit 8922728888
27 changed files with 122 additions and 122 deletions

View file

@ -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) + ']');
}
}