mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 13:10:37 +02:00
Cleanup: Don't use string literals when character literals are needed
This commit is contained in:
parent
95f4989f77
commit
8922728888
27 changed files with 122 additions and 122 deletions
|
@ -525,9 +525,9 @@ int CmdGHistoryMonthly::execute (std::string& output)
|
|||
}
|
||||
else
|
||||
{
|
||||
std::string aBar = ""; while (aBar.length () < addedBar) aBar += "+";
|
||||
std::string cBar = ""; while (cBar.length () < completedBar) cBar += "X";
|
||||
std::string dBar = ""; while (dBar.length () < deletedBar) dBar += "-";
|
||||
std::string aBar = ""; while (aBar.length () < addedBar) aBar += '+';
|
||||
std::string cBar = ""; while (cBar.length () < completedBar) cBar += 'X';
|
||||
std::string dBar = ""; while (dBar.length () < deletedBar) dBar += '-';
|
||||
|
||||
bar += std::string (leftOffset - aBar.length (), ' ');
|
||||
bar += aBar + cBar + dBar;
|
||||
|
@ -722,9 +722,9 @@ int CmdGHistoryAnnual::execute (std::string& output)
|
|||
}
|
||||
else
|
||||
{
|
||||
std::string aBar = ""; while (aBar.length () < addedBar) aBar += "+";
|
||||
std::string cBar = ""; while (cBar.length () < completedBar) cBar += "X";
|
||||
std::string dBar = ""; while (dBar.length () < deletedBar) dBar += "-";
|
||||
std::string aBar = ""; while (aBar.length () < addedBar) aBar += '+';
|
||||
std::string cBar = ""; while (cBar.length () < completedBar) cBar += 'X';
|
||||
std::string dBar = ""; while (dBar.length () < deletedBar) dBar += '-';
|
||||
|
||||
bar += std::string (leftOffset - aBar.length (), ' ');
|
||||
bar += aBar + cBar + dBar;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue