mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
AssertionResult::getMessage returns StringRef to internal string
This commit is contained in:
parent
b3a84c7983
commit
cf5ccaa9df
@ -91,7 +91,7 @@ namespace Catch {
|
|||||||
: expr;
|
: expr;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string AssertionResult::getMessage() const {
|
StringRef AssertionResult::getMessage() const {
|
||||||
return m_resultData.message;
|
return m_resultData.message;
|
||||||
}
|
}
|
||||||
SourceLineInfo AssertionResult::getSourceInfo() const {
|
SourceLineInfo AssertionResult::getSourceInfo() const {
|
||||||
|
@ -46,7 +46,7 @@ namespace Catch {
|
|||||||
std::string getExpressionInMacro() const;
|
std::string getExpressionInMacro() const;
|
||||||
bool hasExpandedExpression() const;
|
bool hasExpandedExpression() const;
|
||||||
std::string getExpandedExpression() const;
|
std::string getExpandedExpression() const;
|
||||||
std::string getMessage() const;
|
StringRef getMessage() const;
|
||||||
SourceLineInfo getSourceInfo() const;
|
SourceLineInfo getSourceInfo() const;
|
||||||
StringRef getTestMacroName() const;
|
StringRef getTestMacroName() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user