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

@ -147,15 +147,15 @@ int CmdProjects::execute (std::string& output)
<< (number_projects == 1
? format (STRING_CMD_PROJECTS_SUMMARY, number_projects)
: format (STRING_CMD_PROJECTS_SUMMARY2, number_projects))
<< " "
<< ' '
<< (quantity == 1
? format (STRING_CMD_PROJECTS_TASK, quantity)
: format (STRING_CMD_PROJECTS_TASKS, quantity))
<< "\n";
<< '\n';
}
else
{
out << STRING_CMD_PROJECTS_NO << "\n";
out << STRING_CMD_PROJECTS_NO << '\n';
rc = 1;
}
@ -203,7 +203,7 @@ int CmdCompletionProjects::execute (std::string& output)
for (auto& project : unique)
if (project.first.length ())
output += project.first + "\n";
output += project.first + '\n';
return 0;
}