Cache IResultCapture in AssertionHandler to avoid repeated lookups

This commit is contained in:
Phil Nash 2017-11-23 19:21:09 +00:00
parent 9329d97a43
commit f417995afc
2 changed files with 10 additions and 7 deletions

View file

@ -15,6 +15,7 @@ namespace Catch {
struct TestFailureException{};
struct AssertionResultData;
struct IResultCapture;
class LazyExpression {
friend class AssertionHandler;
@ -37,6 +38,7 @@ namespace Catch {
bool m_shouldDebugBreak = false;
bool m_shouldThrow = false;
bool m_completed = false;
IResultCapture& m_resultCapture;
public:
AssertionHandler