AssertionResult::getMessage returns StringRef to internal string

This commit is contained in:
Martin Hořeňovský committed 2021-09-08 10:08:07 +02:00
1 parent b3a84c7983
commit cf5ccaa9df
2 files changed
+2 -2

No files matched your search

+1 -1
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 {
+1 -1
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;