Return Clara parsing error message by const-ref

This commit is contained in:
Martin Hořeňovský 2021-10-27 15:10:52 +02:00
parent 905bf438ae
commit 6456ee8b01
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -216,7 +216,7 @@ namespace Catch {
return m_type == ResultType::Ok;
}
auto type() const -> ResultType { return m_type; }
auto errorMessage() const -> std::string {
auto errorMessage() const -> std::string const& {
return m_errorMessage;
}