No need to wrap in a unique_ptr

This commit is contained in:
Paul Fd 2020-03-06 00:22:09 +01:00
parent 4c83ca3a78
commit 9d56e5560c

View file

@ -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>();