MCPcopy Create free account
hub / github.com/audacity/audacity / MakeInstance

Method MakeInstance

libraries/lib-effects/StatefulEffect.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34StatefulEffect::~StatefulEffect() = default;
35
36std::shared_ptr<EffectInstance> StatefulEffect::MakeInstance() const
37{
38 // Cheat with const-cast to return an object that calls through to
39 // non-const methods of a stateful effect.
40 // Stateless effects should override this function and be really const
41 // correct.
42 return std::make_shared<Instance>(const_cast<StatefulEffect&>(*this));
43}

Callers 2

FindInstanceMethod · 0.45
GetEffectStagesImplFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected