mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 04:00:37 +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
|
@ -76,7 +76,7 @@ int CmdVersion::execute (std::string& output)
|
|||
if (context.color ())
|
||||
bold = Color ("bold");
|
||||
|
||||
out << "\n"
|
||||
out << '\n'
|
||||
<< format (STRING_CMD_VERSION_BUILT, bold.colorize (PACKAGE), bold.colorize (VERSION))
|
||||
|
||||
#if defined (DARWIN)
|
||||
|
@ -104,23 +104,23 @@ int CmdVersion::execute (std::string& output)
|
|||
#endif
|
||||
|
||||
#if PACKAGE_LANGUAGE != LANGUAGE_ENG_USA
|
||||
<< " "
|
||||
<< ' '
|
||||
<< STRING_LOCALIZATION_DESC
|
||||
#endif
|
||||
|
||||
<< "\n"
|
||||
<< '\n'
|
||||
<< STRING_CMD_VERSION_COPY
|
||||
<< "\n"
|
||||
<< "\n"
|
||||
<< '\n'
|
||||
<< '\n'
|
||||
<< disclaimer.render ()
|
||||
<< "\n"
|
||||
<< '\n'
|
||||
<< link.render ()
|
||||
<< "\n";
|
||||
<< '\n';
|
||||
|
||||
#if PACKAGE_LANGUAGE != LANGUAGE_ENG_USA
|
||||
out << STRING_LOCALIZATION_AUTHOR
|
||||
<< "\n"
|
||||
<< "\n";
|
||||
<< '\n'
|
||||
<< '\n';
|
||||
#endif
|
||||
|
||||
output = out.str ();
|
||||
|
@ -154,7 +154,7 @@ int CmdCompletionVersion::execute (std::string& output)
|
|||
#else
|
||||
output = VERSION;
|
||||
#endif
|
||||
output += "\n";
|
||||
output += '\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue