mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Removed redundant .c_str()s from StringRef usages
This commit is contained in:
@@ -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) ) {
|
||||
|
Reference in New Issue
Block a user