commit | 93034539579bccd25ebb3aa78ab9d8776b9ac3cc | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Tue Oct 08 11:52:43 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Tue Oct 08 11:52:43 2013 -0700 |
tree | a6352bd8121e0c332b2b269eedc0f5c42b4955b3 | |
parent | b510e3e2388a5ba0acd41bb4e552f157cc282282 [diff] [blame] |
Internal: Use C struct ndn_Blob where possible. Make ndn::Blob work with ndn_Blob.
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp index 0fe7284..d589c89 100644 --- a/ndn-cpp/name.hpp +++ b/ndn-cpp/name.hpp
@@ -68,11 +68,7 @@ void get(struct ndn_NameComponent& componentStruct) const { - componentStruct.valueLength = value_.size(); - if (value_.size() > 0) - componentStruct.value = (uint8_t*)value_.buf(); - else - componentStruct.value = 0; + value_.get(componentStruct.value); } const Blob&