Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_assertionhandler.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-08-14 08:54:57 +0100
committerPhil Nash2017-08-14 08:54:57 +0100
commitece64c3b3aee6256be32f1f860b5d638173e7520 (patch)
tree029d331c378db95936b634b3e353788ee9907e6c /include/internal/catch_assertionhandler.cpp
parentfa3535e95e79ffc9776cc0b43248a108b173b323 (diff)
downloadcatch3-ece64c3b3aee6256be32f1f860b5d638173e7520.tar.gz
Removed redundant .c_str()s from StringRef usages
Diffstat (limited to 'include/internal/catch_assertionhandler.cpp')
-rw-r--r--include/internal/catch_assertionhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_assertionhandler.cpp b/include/internal/catch_assertionhandler.cpp
index 9e7c8453..0eed7cd9 100644
--- a/include/internal/catch_assertionhandler.cpp
+++ b/include/internal/catch_assertionhandler.cpp
@@ -79,7 +79,7 @@ namespace Catch {
}
void AssertionHandler::handle( ResultWas::OfType resultType, StringRef const& message ) {
AssertionResultData data( resultType, LazyExpression( false ) );
- data.message = message.c_str();
+ data.message = message;
handle( data, nullptr );
}
void AssertionHandler::handle( ResultWas::OfType resultType, ITransientExpression const* expr, bool negated ) {
@@ -126,7 +126,7 @@ namespace Catch {
}
void AssertionHandler::useActiveException() {
- handle( ResultWas::ThrewException, Catch::translateActiveException().c_str() );
+ handle( ResultWas::ThrewException, Catch::translateActiveException() );
}
void AssertionHandler::setExceptionGuard() {