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
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue