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 99a7cfceac
commit 35e518cbc2
58 changed files with 372 additions and 374 deletions

View file

@ -182,7 +182,7 @@ void ColumnDescription::render (
for (const auto& i : annos)
{
ISO8601d dt (strtol (i.first.substr (11).c_str (), NULL, 10));
description += "\n" + std::string (_indent, ' ') + dt.toString (_dateformat) + " " + i.second;
description += '\n' + std::string (_indent, ' ') + dt.toString (_dateformat) + ' ' + i.second;
}
}
@ -213,7 +213,7 @@ void ColumnDescription::render (
for (const auto& i : annos)
{
ISO8601d dt (strtol (i.first.substr (11).c_str (), NULL, 10));
description += " " + dt.toString (_dateformat) + " " + i.second;
description += ' ' + dt.toString (_dateformat) + ' ' + i.second;
}
}