diff options
| author | Martin Hořeňovský | 2017-09-14 20:05:25 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-09-14 20:05:25 +0200 |
| commit | 40209d1ae0fefc6ee4144be6bcb1366ef1444506 (patch) | |
| tree | df028cdb2fcc55db282878c7d479951e8a110301 /include/internal/catch_run_context.cpp | |
| parent | 4e852672033ac989e303a4a00de607738e64e7e5 (diff) | |
| download | catch3-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.cpp | 2 |
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); |