all: rename Tlv namespace to tlv for consistency
This commit renames the Tlv namespace defined in
tlv.hpp to tlv to be more consistent with tlv::security
and tlv::nfd. A Tlv namespace alias is provided for
backwards compatibility.
Change-Id: I21278d6a077afe7776802c3296997d4c1c44c6c6
diff --git a/src/management/nfd-controller.cpp b/src/management/nfd-controller.cpp
index 8d82319..3b7056e 100644
--- a/src/management/nfd-controller.cpp
+++ b/src/management/nfd-controller.cpp
@@ -45,7 +45,7 @@
try {
response.wireDecode(data.getContent().blockFromValue());
}
- catch (ndn::Tlv::Error& e) {
+ catch (ndn::tlv::Error& e) {
if (static_cast<bool>(onFailure))
onFailure(serverErrorCode, e.what());
return;
@@ -63,7 +63,7 @@
try {
parameters.wireDecode(response.getBody());
}
- catch (ndn::Tlv::Error& e) {
+ catch (ndn::tlv::Error& e) {
if (static_cast<bool>(onFailure))
onFailure(serverErrorCode, e.what());
return;