Fix compilation after namespace change in ndn-cxx
refs: #2951
Change-Id: Ia9f3caee4733e7f137b5f6f22f7e154069b37f69
diff --git a/src/tlv/lsa-info.cpp b/src/tlv/lsa-info.cpp
index e81bdc9..da3f189 100644
--- a/src/tlv/lsa-info.cpp
+++ b/src/tlv/lsa-info.cpp
@@ -49,25 +49,25 @@
template<bool T>
size_t
-LsaInfo::wireEncode(ndn::EncodingImpl<T>& block) const
+LsaInfo::wireEncode(ndn::EncodingImpl<T>& encoder) const
{
size_t totalLength = 0;
// Absence of an ExpirationPeriod signifies non-expiration
if (!m_hasInfiniteExpirationPeriod) {
- totalLength += ndn::prependNonNegativeIntegerBlock(block,
- ndn::tlv::nlsr::ExpirationPeriod,
- m_expirationPeriod.count());
+ totalLength += prependNonNegativeIntegerBlock(encoder,
+ ndn::tlv::nlsr::ExpirationPeriod,
+ m_expirationPeriod.count());
}
- totalLength += ndn::prependNonNegativeIntegerBlock(block,
- ndn::tlv::nlsr::SequenceNumber,
- m_sequenceNumber);
+ totalLength += prependNonNegativeIntegerBlock(encoder,
+ ndn::tlv::nlsr::SequenceNumber,
+ m_sequenceNumber);
- totalLength += ndn::prependNestedBlock(block, ndn::tlv::nlsr::OriginRouter, m_originRouter);
+ totalLength += prependNestedBlock(encoder, ndn::tlv::nlsr::OriginRouter, m_originRouter);
- totalLength += block.prependVarNumber(totalLength);
- totalLength += block.prependVarNumber(ndn::tlv::nlsr::LsaInfo);
+ totalLength += encoder.prependVarNumber(totalLength);
+ totalLength += encoder.prependVarNumber(ndn::tlv::nlsr::LsaInfo);
return totalLength;
}