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

This commit is contained in:
Paul Beckingham 2016-10-14 22:27:34 -04:00
parent 5403675100
commit 95f4989f77
58 changed files with 372 additions and 374 deletions

View file

@ -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;