diff options
author | Franco M <francomaro@gmail.com> | 2023-10-21 02:25:27 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-21 02:25:27 -0300 |
commit | b76a1d987ff83b831a19a0c19f9fcd96c504c077 (patch) | |
tree | 4b08482cc3d34e341d7d8620182854c248f899b5 /src/tests/common/unique_function.cpp | |
parent | ae2130470effa72c3ea1ffc045e9b6b2a77b23d3 (diff) | |
parent | 2e760a98333520f3de1fa7c7a1f9298fd7241ceb (diff) |
Merge branch 'yuzu-emu:master' into new-shortcut
Diffstat (limited to 'src/tests/common/unique_function.cpp')
-rw-r--r-- | src/tests/common/unique_function.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/common/unique_function.cpp b/src/tests/common/unique_function.cpp index f7a23e876..42e6ade09 100644 --- a/src/tests/common/unique_function.cpp +++ b/src/tests/common/unique_function.cpp @@ -46,8 +46,8 @@ TEST_CASE("UniqueFunction", "[common]") { Noisy noisy; REQUIRE(noisy.state == "Default constructed"); - Common::UniqueFunction<void> func = [noisy = std::move(noisy)] { - REQUIRE(noisy.state == "Move constructed"); + Common::UniqueFunction<void> func = [noisy_inner = std::move(noisy)] { + REQUIRE(noisy_inner.state == "Move constructed"); }; REQUIRE(noisy.state == "Moved away"); func(); @@ -101,7 +101,7 @@ TEST_CASE("UniqueFunction", "[common]") { }; Foo object{&num_destroyed}; { - Common::UniqueFunction<void> func = [object = std::move(object)] {}; + Common::UniqueFunction<void> func = [object_inner = std::move(object)] {}; REQUIRE(num_destroyed == 0); } REQUIRE(num_destroyed == 1); |