commit | 5473abe82cbcbf10ce4995f3896a4c2ccf4ac8c7 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Mon Oct 09 01:35:33 2017 -0400 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Mon Oct 09 01:39:53 2017 -0400 |
tree | b2b025a22affa5c419f4777928be042718d1466c | |
parent | 12d5faa1f8820afbd493b45d69310013973d6440 [diff] [blame] |
Use ndn::Buffer::data() instead of buf() The latter is considered deprecated. Change-Id: If92406ccedca391e3551b456491ebb47737f1bc1
diff --git a/src/leaf-container.hpp b/src/leaf-container.hpp index f08f8f9..95ddc75 100644 --- a/src/leaf-container.hpp +++ b/src/leaf-container.hpp
@@ -49,7 +49,7 @@ BOOST_ASSERT(buffer->size() > sizeof(std::size_t)); - return *reinterpret_cast<const std::size_t*>(buffer->buf()); + return *reinterpret_cast<const std::size_t*>(buffer->data()); } };