diff --git a/src/sfizz/effects/Lofi.cpp b/src/sfizz/effects/Lofi.cpp index 60b66949..f29d9950 100644 --- a/src/sfizz/effects/Lofi.cpp +++ b/src/sfizz/effects/Lofi.cpp @@ -37,7 +37,7 @@ #include "Lofi.h" #include "Opcode.h" -#include +#include "absl/memory/memory.h" #include #include #include @@ -79,7 +79,7 @@ namespace fx { std::unique_ptr Lofi::makeInstance(absl::Span members) { - auto fx = std::make_unique(); + auto fx = absl::make_unique(); for (const Opcode& opcode : members) { switch (opcode.lettersOnlyHash) { @@ -92,7 +92,7 @@ namespace fx { } } - return fx; + return std::move(fx); } /// diff --git a/src/sfizz/sfizz.cpp b/src/sfizz/sfizz.cpp index 9115f318..61e5a0c5 100644 --- a/src/sfizz/sfizz.cpp +++ b/src/sfizz/sfizz.cpp @@ -6,10 +6,11 @@ #include "Synth.h" #include "sfizz.hpp" +#include "absl/memory/memory.h" sfz::Sfizz::Sfizz() { - synth = std::make_unique(); + synth = absl::make_unique(); } sfz::Sfizz::~Sfizz()