diff --git a/src/olympic/keel/src/media.cpp b/src/olympic/keel/src/media.cpp index 03a7e718..13be5ac7 100644 --- a/src/olympic/keel/src/media.cpp +++ b/src/olympic/keel/src/media.cpp @@ -85,8 +85,8 @@ ox::Result pathToUuid(Context &ctx, ox::CRStringView path) noexcept { ox::Result uuidToPath(Context &ctx, ox::CRStringView uuid) noexcept { #ifndef OX_BARE_METAL - oxRequire(out, ctx.uuidToPath.at(uuid)); - return *out; + oxRequireM(out, ctx.uuidToPath.at(uuid)); + return std::move(*out); #else return OxError(1, "UUID to path conversion not supported on this platform"); #endif @@ -94,8 +94,8 @@ ox::Result uuidToPath(Context &ctx, ox::CRStringView uuid) noexcept ox::Result uuidToPath(Context &ctx, ox::UUID const&uuid) noexcept { #ifndef OX_BARE_METAL - oxRequire(out, ctx.uuidToPath.at(uuid.toString())); - return *out; + oxRequireM(out, ctx.uuidToPath.at(uuid.toString())); + return std::move(*out); #else return OxError(1, "UUID to path conversion not supported on this platform"); #endif