face: move Channel and subclasses into nfd::face namespace
Change-Id: I163ef20e11b65d19d68585ec075fd3cd224a573b
diff --git a/daemon/face/channel.cpp b/daemon/face/channel.cpp
index 65e0a25..ed13cb2 100644
--- a/daemon/face/channel.cpp
+++ b/daemon/face/channel.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2015, Regents of the University of California,
+ * Copyright (c) 2014-2017, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -26,10 +26,9 @@
#include "channel.hpp"
namespace nfd {
+namespace face {
-Channel::~Channel()
-{
-}
+Channel::~Channel() = default;
void
Channel::setUri(const FaceUri& uri)
@@ -40,8 +39,6 @@
void
connectFaceClosedSignal(Face& face, const std::function<void()>& f)
{
- using face::FaceState;
-
face.afterStateChange.connect(
[f] (FaceState oldState, FaceState newState) {
if (newState == FaceState::CLOSED) {
@@ -50,4 +47,5 @@
});
}
+} // namespace face
} // namespace nfd