AssertionResult::getMessage returns StringRef to internal string

This commit is contained in:
Martin Hořeňovský 2021-09-08 10:08:07 +02:00
parent b3a84c7983
commit cf5ccaa9df
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ namespace Catch {
: expr;
}
std::string AssertionResult::getMessage() const {
StringRef AssertionResult::getMessage() const {
return m_resultData.message;
}
SourceLineInfo AssertionResult::getSourceInfo() const {

View File

@ -46,7 +46,7 @@ namespace Catch {
std::string getExpressionInMacro() const;
bool hasExpandedExpression() const;
std::string getExpandedExpression() const;
std::string getMessage() const;
StringRef getMessage() const;
SourceLineInfo getSourceInfo() const;
StringRef getTestMacroName() const;