mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Cleanup: Don't use string literals when character literals are needed
This commit is contained in:
parent
5403675100
commit
95f4989f77
58 changed files with 372 additions and 374 deletions
|
@ -63,19 +63,19 @@ int CmdAdd::execute (std::string& output)
|
|||
if (context.verbose ("new-id") &&
|
||||
(status == Task::pending ||
|
||||
status == Task::waiting))
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.id) + "\n";
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.id) + '\n';
|
||||
|
||||
else if (context.verbose ("new-id") &&
|
||||
status == Task::recurring)
|
||||
output += format (STRING_CMD_ADD_RECUR, task.id) + "\n";
|
||||
output += format (STRING_CMD_ADD_RECUR, task.id) + '\n';
|
||||
|
||||
else if (context.verbose ("new-uuid") &&
|
||||
status != Task::recurring)
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + "\n";
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + '\n';
|
||||
|
||||
else if (context.verbose ("new-uuid") &&
|
||||
status == Task::recurring)
|
||||
output += format (STRING_CMD_ADD_RECUR, task.get ("uuid")) + "\n";
|
||||
output += format (STRING_CMD_ADD_RECUR, task.get ("uuid")) + '\n';
|
||||
|
||||
if (context.verbose ("project"))
|
||||
context.footnote (onProjectChange (task));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue