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

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_run_context.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-09-14 20:05:25 +0200
committerMartin Hořeňovský2017-09-14 20:05:25 +0200
commit40209d1ae0fefc6ee4144be6bcb1366ef1444506 (patch)
treedf028cdb2fcc55db282878c7d479951e8a110301 /include/internal/catch_run_context.cpp
parent4e852672033ac989e303a4a00de607738e64e7e5 (diff)
downloadcatch3-40209d1ae0fefc6ee4144be6bcb1366ef1444506.tar.gz
Use StringRef on fatal error path
So far the fatal error path only uses string literals, so this removes an allocation from that context
Diffstat (limited to 'include/internal/catch_run_context.cpp')
-rw-r--r--include/internal/catch_run_context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/catch_run_context.cpp b/include/internal/catch_run_context.cpp
index b034ec62..11b85b24 100644
--- a/include/internal/catch_run_context.cpp
+++ b/include/internal/catch_run_context.cpp
@@ -208,7 +208,7 @@ namespace Catch {
m_shouldReportUnexpected = false;
}
- void RunContext::handleFatalErrorCondition(std::string const & message) {
+ void RunContext::handleFatalErrorCondition( StringRef message ) {
// First notify reporter that bad things happened
m_reporter->fatalErrorEncountered(message);