build: use C++11
Change-Id: I0e58ac4e9cb42d07a9b58125d761875f91c7744c
Refs: #1930
diff --git a/src/handles/write-handle.cpp b/src/handles/write-handle.cpp
index 0bc4e12..08e951b 100644
--- a/src/handles/write-handle.cpp
+++ b/src/handles/write-handle.cpp
@@ -20,7 +20,6 @@
#include "write-handle.hpp"
namespace repo {
-using namespace ndn::time;
static const int RETRY_TIMEOUT = 3;
static const int DEFAULT_CREDIT = 12;
@@ -72,7 +71,7 @@
}
void
-WriteHandle::onValidated(const shared_ptr<const Interest>& interest, const Name& prefix)
+WriteHandle::onValidated(const std::shared_ptr<const Interest>& interest, const Name& prefix)
{
//m_validResult = 1;
RepoCommandParameter parameter;
@@ -99,14 +98,15 @@
}
void
-WriteHandle::onValidationFailed(const shared_ptr<const Interest>& interest, const string& reason)
+WriteHandle::onValidationFailed(const std::shared_ptr<const Interest>& interest,
+ const std::string& reason)
{
std::cerr << reason << std::endl;
negativeReply(*interest, 401);
}
void
-WriteHandle::onData(const Interest& interest, ndn::Data& data, ProcessId processId)
+WriteHandle::onData(const Interest& interest, Data& data, ProcessId processId)
{
m_validator.validate(data,
bind(&WriteHandle::onDataValidated, this, interest, _1, processId),
@@ -114,7 +114,8 @@
}
void
-WriteHandle::onDataValidated(const Interest& interest, const shared_ptr<const Data>& data,
+WriteHandle::onDataValidated(const Interest& interest,
+ const std::shared_ptr<const Data>& data,
ProcessId processId)
{
if (m_processes.count(processId) == 0) {
@@ -135,7 +136,8 @@
}
void
-WriteHandle::onDataValidationFailed(const shared_ptr<const Data>& data, const std::string& reason)
+WriteHandle::onDataValidationFailed(const std::shared_ptr<const Data>& data,
+ const std::string& reason)
{
std::cerr << reason << std::endl;
}
@@ -150,7 +152,7 @@
void
WriteHandle::onSegmentDataValidated(const Interest& interest,
- const shared_ptr<const Data>& data,
+ const std::shared_ptr<const Data>& data,
ProcessId processId)
{
if (m_processes.count(processId) == 0) {
@@ -182,7 +184,7 @@
}
void
-WriteHandle::onTimeout(const ndn::Interest& interest, ProcessId processId)
+WriteHandle::onTimeout(const Interest& interest, ProcessId processId)
{
std::cerr << "Timeout" << std::endl;
m_processes.erase(processId);