meta-info: deprecate MetaInfo::TYPE_* constants
The following items are deprecated:
* tlv::ContentType_Default
* MetaInfo::TYPE_DEFAULT
* MetaInfo::TYPE_BLOB
* MetaInfo::TYPE_LINK
* MetaInfo::TYPE_KEY
* MetaInfo::TYPE_NACK
refs #2128
Change-Id: I01f0aa0dd27d32a18a9fff79401b5784d9ddcb10
diff --git a/src/meta-info.cpp b/src/meta-info.cpp
index 3db4cb3..a4f9938 100644
--- a/src/meta-info.cpp
+++ b/src/meta-info.cpp
@@ -33,7 +33,7 @@
"MetaInfo::Error must inherit from tlv::Error");
MetaInfo::MetaInfo()
- : m_type(TYPE_DEFAULT)
+ : m_type(tlv::ContentType_Blob)
, m_freshnessPeriod(-1)
{
}
@@ -154,7 +154,7 @@
}
// ContentType
- if (m_type != TYPE_DEFAULT)
+ if (m_type != tlv::ContentType_Blob)
{
totalLength += prependNonNegativeIntegerBlock(blk, tlv::ContentType, m_type);
}
@@ -207,7 +207,7 @@
++val;
}
else {
- m_type = TYPE_DEFAULT;
+ m_type = tlv::ContentType_Blob;
}
// FreshnessPeriod