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
35e518cbc2
commit
814d7d69fa
27 changed files with 122 additions and 122 deletions
|
@ -89,7 +89,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
<< " " << STRING_CMD_DIAG_VERSION << ": "
|
||||
<< __VERSION__ << '\n'
|
||||
#endif
|
||||
<< " " << STRING_CMD_DIAG_CAPS << ":"
|
||||
<< " " << STRING_CMD_DIAG_CAPS << ':'
|
||||
#ifdef __STDC__
|
||||
<< " +stdc"
|
||||
#endif
|
||||
|
@ -168,7 +168,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
#ifdef CMAKE_BUILD_TYPE
|
||||
<< CMAKE_BUILD_TYPE
|
||||
#else
|
||||
<< "-"
|
||||
<< '-'
|
||||
#endif
|
||||
<< "\n\n";
|
||||
|
||||
|
@ -273,7 +273,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
auto last_slash = credentials.rfind ('/');
|
||||
if (last_slash != std::string::npos)
|
||||
credentials = credentials.substr (0, last_slash)
|
||||
+ "/"
|
||||
+ '/'
|
||||
+ std::string (credentials.length () - last_slash - 1, '*');
|
||||
|
||||
out << " Creds: "
|
||||
|
@ -379,7 +379,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
<< (term ? term : STRING_CMD_DIAG_NONE)
|
||||
<< " ("
|
||||
<< context.getWidth ()
|
||||
<< "x"
|
||||
<< 'x'
|
||||
<< context.getHeight ()
|
||||
<< ")\n";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue