diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-09-26 18:50:07 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-09-26 18:50:07 +0000 |
commit | 72b6f0a82a7f1f7caec8cc58815b3802d94fb92d (patch) | |
tree | e7d2566341ea02ffbbdd2ccedcb5f5d27beae1c4 /vespalib | |
parent | 4f11c4d782c70dc99ad8b0c2f4fc20fbec0a95a3 (diff) |
Add && to make it evident that the object must be moved.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/data/databuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/data/databuffer.h b/vespalib/src/vespa/vespalib/data/databuffer.h index e1c21661716..3229921e09c 100644 --- a/vespalib/src/vespa/vespalib/data/databuffer.h +++ b/vespalib/src/vespa/vespalib/data/databuffer.h @@ -607,7 +607,7 @@ public: **/ void swap(DataBuffer &other); - static Alloc stealBuffer(DataBuffer buf) { + static Alloc stealBuffer(DataBuffer && buf) { return buf.stealBuffer(); } }; |