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
5403675100
commit
95f4989f77
58 changed files with 372 additions and 374 deletions
|
@ -32,7 +32,6 @@
|
|||
#include <i18n.h>
|
||||
#include <text.h>
|
||||
#include <util.h>
|
||||
#include <iostream> // TODO Remove
|
||||
|
||||
extern Context context;
|
||||
|
||||
|
@ -57,13 +56,13 @@ int CmdHelp::execute (std::string& output)
|
|||
{
|
||||
auto words = context.cli2.getWords ();
|
||||
if (words.size () == 1 && closeEnough ("usage", words[0]))
|
||||
output = "\n"
|
||||
output = '\n'
|
||||
+ composeUsage ()
|
||||
+ "\n";
|
||||
+ '\n';
|
||||
else
|
||||
output = "\n"
|
||||
output = '\n'
|
||||
+ composeUsage ()
|
||||
+ "\n"
|
||||
+ '\n'
|
||||
+ STRING_CMD_HELP_TEXT;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue