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

View File

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