Fixing usages of ptr_lib::shared_ptr
In certain cases, importing both std:: and ndn::ptr_lib namespaces
causes ambiguity for shared_ptr type.
Change-Id: Iddc02353e1615b2387277c56185a1dd873d54459
diff --git a/src/security/identity/basic-identity-storage.cpp b/src/security/identity/basic-identity-storage.cpp
index 67a68f0..38cd55b 100644
--- a/src/security/identity/basic-identity-storage.cpp
+++ b/src/security/identity/basic-identity-storage.cpp
@@ -26,7 +26,6 @@
INIT_LOGGER("BasicIdentityStorage");
using namespace std;
-using namespace ndn::ptr_lib;
namespace ndn
{
@@ -444,7 +443,7 @@
sqlite3_finalize(statement);
}
-shared_ptr<Data>
+ptr_lib::shared_ptr<Data>
BasicIdentityStorage::getCertificate(const Name &certificateName, bool allowAny)
{
if (doesCertificateExist(certificateName)) {
@@ -468,7 +467,7 @@
int res = sqlite3_step(statement);
- shared_ptr<Data> data(new Data());
+ ptr_lib::shared_ptr<Data> data(new Data());
if (res == SQLITE_ROW)
data->wireDecode((const uint8_t*)sqlite3_column_blob(statement, 0), sqlite3_column_bytes(statement, 0));
@@ -478,7 +477,7 @@
}
else {
_LOG_DEBUG("Certificate does not exist!");
- return shared_ptr<Data>();
+ return ptr_lib::shared_ptr<Data>();
}
}