MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / ~ScopedAction

Method ~ScopedAction

Tools/ScopedAction.cpp:35–44  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

33
34 //-------------------------------------------------------------------------
35 ScopedAction::~ScopedAction()
36 {
37 auto error = Try([&]
38 {
39 action_();
40 });
41
42 if (error)
43 LOG_ERROR << *error;
44 }
45
46}

Callers

nothing calls this directly

Calls 1

TryFunction · 0.70

Tested by

no test coverage detected