daemon: mark some classes and methods 'final'
As suggested by gcc's -Wsuggest-final-types and -Wsuggest-final-methods
Change-Id: I1622857ee53581efd0c6ce3fe93199c72202d817
diff --git a/daemon/face/ethernet-channel.hpp b/daemon/face/ethernet-channel.hpp
index 36d32be..7e7fa87 100644
--- a/daemon/face/ethernet-channel.hpp
+++ b/daemon/face/ethernet-channel.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2018, Regents of the University of California,
+ * Copyright (c) 2014-2021, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -29,6 +29,7 @@
#include "channel.hpp"
#include "ethernet-protocol.hpp"
#include "pcap-helper.hpp"
+
#include <ndn-cxx/net/network-interface.hpp>
namespace nfd {
@@ -37,7 +38,7 @@
/**
* \brief Class implementing Ethernet-based channel to create faces
*/
-class EthernetChannel : public Channel
+class EthernetChannel final : public Channel
{
public:
/**
@@ -63,13 +64,13 @@
time::nanoseconds idleTimeout);
bool
- isListening() const override
+ isListening() const final
{
return m_isListening;
}
size_t
- size() const override
+ size() const final
{
return m_channelFaces.size();
}