No need to wrap in a unique_ptr
This commit is contained in:
parent
4c83ca3a78
commit
9d56e5560c
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ std::unique_ptr<Effect> EffectFactory::makeEffect(absl::Span<const Opcode> membe
|
|||
return std::make_unique<sfz::fx::Nothing>();
|
||||
}
|
||||
|
||||
auto fx = std::unique_ptr<Effect>(it->make(members));
|
||||
auto fx = it->make(members);
|
||||
if (!fx) {
|
||||
DBG("Could not instantiate effect of type: " << type);
|
||||
return std::make_unique<sfz::fx::Nothing>();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue