Skip to content

Commit 099cc85

Browse files
authored
Merge pull request #1494 from ldorau/Move_variables_instead_of_copy_them
Move variables instead of copy them
2 parents ff04f52 + f9381a8 commit 099cc85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/properties/provider_properties.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ struct ProviderPropsTest : umf_test::test,
3030
test::SetUp();
3131

3232
auto [create_fun, destroy_fun, name] = this->GetParam();
33-
provider_create = create_fun;
34-
provider_destroy = destroy_fun;
33+
provider_create = std::move(create_fun);
34+
provider_destroy = std::move(destroy_fun);
3535
(void)name; // unused
3636

3737
provider_create(&provider, &data);

0 commit comments

Comments
 (0)