Removed redundant .c_str()s from StringRef usages

This commit is contained in:
Phil Nash
2017-08-14 08:54:57 +01:00
parent fa3535e95e
commit ece64c3b3a
9 changed files with 24 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ namespace {
friend TablePrinter& operator << ( TablePrinter& tp, ColumnBreak ) {
auto colStr = tp.m_oss.str();
// This takes account of utf8 encodings
auto strSize = Catch::StringRef( colStr.c_str(), colStr.size() ).numberOfCharacters();
auto strSize = Catch::StringRef( colStr ).numberOfCharacters();
tp.m_oss.str("");
tp.open();
if( tp.m_currentColumn == static_cast<int>(tp.m_columnInfos.size()-1) ) {