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/websocket-factory.hpp b/daemon/face/websocket-factory.hpp
index a4b6a46..721a1eb 100644
--- a/daemon/face/websocket-factory.hpp
+++ b/daemon/face/websocket-factory.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,
@@ -34,7 +34,7 @@
/** \brief Protocol factory for WebSocket
*/
-class WebSocketFactory : public ProtocolFactory
+class WebSocketFactory final : public ProtocolFactory
{
public:
static const std::string&
@@ -62,10 +62,10 @@
*/
void
doProcessConfig(OptionalConfigSection configSection,
- FaceSystem::ConfigContext& context) override;
+ FaceSystem::ConfigContext& context) final;
std::vector<shared_ptr<const Channel>>
- doGetChannels() const override;
+ doGetChannels() const final;
private:
std::map<websocket::Endpoint, shared_ptr<WebSocketChannel>> m_channels;