Fix compilation after namespace change in ndn-cxx
refs: #2951
Change-Id: Ia9f3caee4733e7f137b5f6f22f7e154069b37f69
diff --git a/src/tlv/adjacency.cpp b/src/tlv/adjacency.cpp
index e9912b0..3a24356 100644
--- a/src/tlv/adjacency.cpp
+++ b/src/tlv/adjacency.cpp
@@ -45,21 +45,19 @@
template<bool T>
size_t
-Adjacency::wireEncode(ndn::EncodingImpl<T>& block) const
+Adjacency::wireEncode(ndn::EncodingImpl<T>& encoder) const
{
size_t totalLength = 0;
- totalLength += ndn::prependNonNegativeIntegerBlock(block,
- ndn::tlv::nlsr::Cost,
- m_cost);
+ totalLength += prependNonNegativeIntegerBlock(encoder, ndn::tlv::nlsr::Cost, m_cost);
- totalLength += block.prependByteArrayBlock(
+ totalLength += encoder.prependByteArrayBlock(
ndn::tlv::nlsr::Uri, reinterpret_cast<const uint8_t*>(m_uri.c_str()), m_uri.size());
- totalLength += m_name.wireEncode(block);
+ totalLength += m_name.wireEncode(encoder);
- totalLength += block.prependVarNumber(totalLength);
- totalLength += block.prependVarNumber(ndn::tlv::nlsr::Adjacency);
+ totalLength += encoder.prependVarNumber(totalLength);
+ totalLength += encoder.prependVarNumber(ndn::tlv::nlsr::Adjacency);
return totalLength;
}