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
|
@ -128,11 +128,11 @@ int CmdUDAs::execute (std::string& output)
|
|||
<< (udas.size () == 1
|
||||
? format (STRING_CMD_UDAS_SUMMARY, udas.size ())
|
||||
: format (STRING_CMD_UDAS_SUMMARY2, udas.size ()))
|
||||
<< "\n";
|
||||
<< '\n';
|
||||
}
|
||||
else
|
||||
{
|
||||
out << STRING_CMD_UDAS_NO << "\n";
|
||||
out << STRING_CMD_UDAS_NO << '\n';
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ int CmdUDAs::execute (std::string& output)
|
|||
<< (udas.size () == 1
|
||||
? format (STRING_CMD_UDAS_ORPHAN, orphans.size ())
|
||||
: format (STRING_CMD_UDAS_ORPHANS, orphans.size ()))
|
||||
<< "\n";
|
||||
<< '\n';
|
||||
}
|
||||
|
||||
output = out.str ();
|
||||
|
@ -215,7 +215,7 @@ int CmdCompletionUDAs::execute (std::string& output)
|
|||
{
|
||||
std::sort (udas.begin (), udas.end ());
|
||||
join (output, "\n", udas);
|
||||
output += "\n";
|
||||
output += '\n';
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue