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/table/cs-policy-lru.hpp b/daemon/table/cs-policy-lru.hpp
index 017de7e..5d61e47 100644
--- a/daemon/table/cs-policy-lru.hpp
+++ b/daemon/table/cs-policy-lru.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2019, 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,
@@ -46,7 +46,7 @@
/** \brief Least-Recently-Used (LRU) replacement policy
*/
-class LruPolicy : public Policy
+class LruPolicy final : public Policy
{
public:
LruPolicy();
@@ -56,19 +56,19 @@
private:
void
- doAfterInsert(EntryRef i) override;
+ doAfterInsert(EntryRef i) final;
void
- doAfterRefresh(EntryRef i) override;
+ doAfterRefresh(EntryRef i) final;
void
- doBeforeErase(EntryRef i) override;
+ doBeforeErase(EntryRef i) final;
void
- doBeforeUse(EntryRef i) override;
+ doBeforeUse(EntryRef i) final;
void
- evictEntries() override;
+ evictEntries() final;
private:
/** \brief moves an entry to the end of queue