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

@ -225,7 +225,7 @@ int CmdCalendar::execute (std::string& output)
int details_mFrom = mFrom;
std::stringstream out;
out << "\n";
out << '\n';
while (yFrom < yTo || (yFrom == yTo && mFrom <= mTo))
{
@ -269,10 +269,10 @@ int CmdCalendar::execute (std::string& output)
}
}
out << "\n"
out << '\n'
<< optionalBlankLine ()
<< renderMonths (mFrom, yFrom, today, tasks, monthsPerLine)
<< "\n";
<< '\n';
mFrom += monthsPerLine;
if (mFrom > 12)
@ -306,9 +306,9 @@ int CmdCalendar::execute (std::string& output)
<< color_holiday.colorize ("holiday")
<< ", "
<< color_weeknumber.colorize ("weeknumber")
<< "."
<< '.'
<< optionalBlankLine ()
<< "\n";
<< '\n';
if (context.config.get ("calendar.details") == "full" || context.config.get ("calendar.holidays") == "full")
{
@ -409,7 +409,7 @@ int CmdCalendar::execute (std::string& output)
out << optionalBlankLine ()
<< holTable.render ()
<< "\n";
<< '\n';
}
}