From eedb0ba478dea7ffebd347a37acdbf19b095066b Mon Sep 17 00:00:00 2001 From: Jesse Talavera Date: Fri, 15 Dec 2023 14:52:35 -0500 Subject: Add a call to `std::move` that I missed (#1917) --- src/GBACart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/GBACart.cpp') diff --git a/src/GBACart.cpp b/src/GBACart.cpp index 6cd6e39..826444b 100644 --- a/src/GBACart.cpp +++ b/src/GBACart.cpp @@ -758,7 +758,7 @@ std::unique_ptr ParseROM(std::unique_ptr&& romdata, u32 romlen std::unique_ptr cartsram; try { - cartsram = sramdata ? std::make_unique(sramlen) : nullptr; + cartsram = std::move(sramdata) ? std::make_unique(sramlen) : nullptr; } catch (const std::bad_alloc& e) { -- cgit v1.2.3