diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-03-05 14:45:29 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-03-05 14:45:29 +0100 |
commit | 72a7ea5cae8b38e502787671538ac419225876b0 (patch) | |
tree | ba8bc7609b7e6e833c1702d4a8cd6b000be48b18 | |
parent | a1721a02db974ae3850461b573d8d337468f57d3 (diff) |
Use move assignment.
-rw-r--r-- | vespalib/src/tests/ref_counted/ref_counted_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/tests/ref_counted/ref_counted_test.cpp b/vespalib/src/tests/ref_counted/ref_counted_test.cpp index cba3b1cda90..d831e664374 100644 --- a/vespalib/src/tests/ref_counted/ref_counted_test.cpp +++ b/vespalib/src/tests/ref_counted/ref_counted_test.cpp @@ -43,7 +43,7 @@ void (*copy_assign_ref_counted_leaf)(ref_counted<Leaf>& lhs, const ref_counted<L void move_assign_ref_counted_leaf_real(ref_counted<Leaf>& lhs, ref_counted<Leaf>&& rhs) { - lhs = rhs; + lhs = std::move(rhs); } void (*move_assign_ref_counted_leaf)(ref_counted<Leaf>& lhs, ref_counted<Leaf>&& rhs) = move_assign_ref_counted_leaf_real; |