Use StringRef on fatal error path
So far the fatal error path only uses string literals, so this removes an allocation from that context
This commit is contained in:
parent
4e85267203
commit
40209d1ae0
3 changed files with 5 additions and 3 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "catch_stringref.h"
|
||||
|
||||
namespace Catch {
|
||||
|
||||
class AssertionResult;
|
||||
|
@ -43,7 +45,7 @@ namespace Catch {
|
|||
|
||||
virtual void exceptionEarlyReported() = 0;
|
||||
|
||||
virtual void handleFatalErrorCondition( std::string const& message ) = 0;
|
||||
virtual void handleFatalErrorCondition( StringRef message ) = 0;
|
||||
|
||||
virtual bool lastAssertionPassed() = 0;
|
||||
virtual void assertionPassed() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue