]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/ExternalACLEntry.cc
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / ExternalACLEntry.cc
index da8e4af9e37df94f630ea697579f53459910b468..e9269ccfc781bf835958efc9ff9c3049f8f75618 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
 
 #include "squid.h"
 #include "ExternalACLEntry.h"
-#include "SquidTime.h"
+#include "time/gadgets.h"
 
 /******************************************************************
  * external_acl cache
  */
 
 ExternalACLEntry::ExternalACLEntry() :
-        notes()
+    notes()
 {
-    lru.next = lru.prev = NULL;
+    lru.next = lru.prev = nullptr;
     result = ACCESS_DENIED;
     date = 0;
-    def = NULL;
+    def = nullptr;
 }
 
 ExternalACLEntry::~ExternalACLEntry()
@@ -37,7 +37,7 @@ ExternalACLEntry::update(ExternalACLEntryData const &someData)
     result = someData.result;
 
     // replace all notes. not combine
-    notes.entries.clear();
+    notes.clear();
     notes.append(&someData.notes);
 
 #if USE_AUTH
@@ -48,3 +48,4 @@ ExternalACLEntry::update(ExternalACLEntryData const &someData)
     tag = someData.tag;
     log = someData.log;
 }
+