commit | 3b101d06827c46a070081733cd40dbb3636ccf64 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Sat Jul 21 22:44:09 2018 -0400 |
committer | Alex Afanasyev <aa@cs.fiu.edu> | Tue Jul 24 15:17:34 2018 -0700 |
tree | 21fe3caa45ffe1204a15383f67a678f996c91351 | |
parent | cf0aff8a03bb49bc52f46f462826bf362234473a [diff] [blame] |
Use std::move in more places Plus various code simplifications Change-Id: I19805e4a635e4c74afaff68f9d8968475217ec6e
diff --git a/src/data.cpp b/src/data.cpp index 090b82d..169d99c 100644 --- a/src/data.cpp +++ b/src/data.cpp
@@ -263,10 +263,10 @@ } Data& -Data::setContent(const ConstBufferPtr& value) +Data::setContent(ConstBufferPtr value) { resetWire(); - m_content = Block(tlv::Content, value); + m_content = Block(tlv::Content, std::move(value)); return *this; }