src: Replace implicit conversion of st::string to ndn::Name
Fixed two places where std::string was passed to function accepting ndn::Name.
Although no compilation error was shown, from NLSR log investigation it is
found that name is garbled in CentOs because of that string passing.
Refs: #1713
Change-Id: I8a9fc00144df383debaac1e1c418fca14617f113
diff --git a/src/lsa.cpp b/src/lsa.cpp
index 2e933ce..90f3188 100644
--- a/src/lsa.cpp
+++ b/src/lsa.cpp
@@ -103,7 +103,7 @@
return false;
}
for (uint32_t i = 0; i < numName; i++) {
- string name(*tok_iter++);
+ ndn::Name name(*tok_iter++);
addName(name);
}
return true;
@@ -283,7 +283,7 @@
}
for (uint32_t i = 0; i < numLink; i++) {
try {
- string adjName(*tok_iter++);
+ ndn::Name adjName(*tok_iter++);
std::string connectingFaceUri(*tok_iter++);
double linkCost = boost::lexical_cast<double>(*tok_iter++);
Adjacent adjacent(adjName, connectingFaceUri, linkCost, 0, 0);