]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/DiskIO/ReadRequest.h
Maintenance: automate header guards 2/3 (#1655)
[thirdparty/squid.git] / src / DiskIO / ReadRequest.h
index c337666976dce3d40a06ad44b6b30889a603398b..47f2145246a3b3ff0a42497184e8eca0005bb0c5 100644 (file)
@@ -1,31 +1,30 @@
 /*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * 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.
  */
 
-#ifndef SQUID_READREQUEST_H
-#define SQUID_READREQUEST_H
+#ifndef SQUID_SRC_DISKIO_READREQUEST_H
+#define SQUID_SRC_DISKIO_READREQUEST_H
 
 #include "base/RefCount.h"
 #include "cbdata.h"
 
 class ReadRequest : public RefCountable
 {
+    CBDATA_CLASS(ReadRequest);
 
 public:
     typedef RefCount<ReadRequest> Pointer;
     ReadRequest(char *buf, off_t offset, size_t len);
-    virtual ~ReadRequest() {}
+    ~ReadRequest() override {}
 
     char *buf;
     off_t offset;
     size_t len;
-
-private:
-    CBDATA_CLASS2(ReadRequest);
 };
 
-#endif /* SQUID_READREQUEST_H */
+#endif /* SQUID_SRC_DISKIO_READREQUEST_H */
+