]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/mgr/FunAction.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / mgr / FunAction.h
index 9ee072f44fa0d2389f970642586538296689470e..2938d6b83e0950342dcb3e3866ff01d49043afe2 100644 (file)
@@ -1,8 +1,13 @@
 /*
- * DEBUG: section 16    Cache Manager API
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
  *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
+/* DEBUG: section 16    Cache Manager API */
+
 #ifndef SQUID_MGR_FUN_ACTION_H
 #define SQUID_MGR_FUN_ACTION_H
 
@@ -23,13 +28,13 @@ public:
     static Pointer Create(const CommandPointer &cmd, OBJH *aHandler);
 
     /* Action API */
-    virtual void respond(const Request& request);
+    void respond(const Request& request) override;
     // we cannot aggregate because we do not even know what the handler does
-    virtual bool aggregatable() const { return false; }
+    bool aggregatable() const override { return false; }
 
 protected:
     /* Action API */
-    virtual void dump(StoreEntry *entry);
+    void dump(StoreEntry *entry) override;
 
 private:
     OBJH *handler; ///< legacy function that collects and dumps info
@@ -42,7 +47,7 @@ public:
     explicit FunActionCreator(OBJH *aHandler): handler(aHandler) {}
 
     /* ActionCreator API */
-    virtual Action::Pointer create(const CommandPointer &cmd) const {
+    Action::Pointer create(const CommandPointer &cmd) const override {
         return FunAction::Create(cmd, handler);
     }
 
@@ -53,3 +58,4 @@ private:
 } // namespace Mgr
 
 #endif /* SQUID_MGR_FUN_ACTION_H */
+