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

@@ -35,7 +35,7 @@ namespace Catch {
auto matcherAsString = m_matcher.toString();
os << Catch::Detail::stringify( m_arg ) << ' ';
if( matcherAsString == Detail::unprintableString )
os << m_matcherString.c_str();
os << m_matcherString;
else
os << matcherAsString;
}