]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os: do not move temporay variable
authorKefu Chai <kchai@redhat.com>
Thu, 29 Oct 2020 08:21:06 +0000 (16:21 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 29 Oct 2020 08:32:26 +0000 (16:32 +0800)
commite29f6e84d733b9131c886b49c3df8fd096e32d59
tree028c26b5e72ca829f582d83f065f5415e303c1fc
parent6498d97a0e771d7e6cfcdd8ee911a6b0762d7e3c
crimson/os: do not move temporay variable

copy ellision ensures that copy ctor is not called in this case

silences warning like:

mson/os/seastore/lba_manager/btree/lba_btree_node_impl.cc:262:5: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
    std::move(begin()),
    ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/lba_manager/btree/lba_btree_node_impl.cc