diff options
| author | Martin Hořeňovský | 2017-11-13 13:08:59 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-11-13 13:08:59 +0100 |
| commit | a06b6dc3ea58167e8ebd4cb8ebaa1391d6027a4d (patch) | |
| tree | 50888b75c9f9d8a4700f8d5a2c0a856a069e90ea /include | |
| parent | 0adb04807a2591fcfc3aa5e7158d2fb136a6568c (diff) | |
| download | catch3-a06b6dc3ea58167e8ebd4cb8ebaa1391d6027a4d.tar.gz | |
Remove pointless StringRef -> std::string conversions
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_assertionresult.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/internal/catch_assertionresult.cpp b/include/internal/catch_assertionresult.cpp index 44151043..ec32c664 100644 --- a/include/internal/catch_assertionresult.cpp +++ b/include/internal/catch_assertionresult.cpp @@ -54,7 +54,7 @@ namespace Catch { std::string AssertionResult::getExpression() const { if( isFalseTest( m_info.resultDisposition ) ) - return "!(" + std::string(m_info.capturedExpression) + ")"; + return "!(" + m_info.capturedExpression + ")"; else return m_info.capturedExpression; } @@ -65,9 +65,9 @@ namespace Catch { expr = m_info.capturedExpression; else { expr.reserve( m_info.macroName.size() + m_info.capturedExpression.size() + 4 ); - expr += m_info.macroName; + expr += m_info.macroName.c_str(); expr += "( "; - expr += m_info.capturedExpression; + expr += m_info.capturedExpression.c_str(); expr += " )"; } return expr; |