]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polish: convert ACLFilledChecklist to CBDATA_CLASS2
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 17 May 2013 11:07:15 +0000 (05:07 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 17 May 2013 11:07:15 +0000 (05:07 -0600)
src/acl/FilledChecklist.cc
src/acl/FilledChecklist.h

index a68fdccc781c1105b038feedd4534ecfb2a4f0cf..40cfa7d4fa64fa551f08b76c3f34b51368067a8b 100644 (file)
 
 CBDATA_CLASS_INIT(ACLFilledChecklist);
 
-void *
-ACLFilledChecklist::operator new (size_t size)
-{
-    assert (size == sizeof(ACLFilledChecklist));
-    CBDATA_INIT_TYPE(ACLFilledChecklist);
-    ACLFilledChecklist *result = cbdataAlloc(ACLFilledChecklist);
-    return result;
-}
-
-void
-ACLFilledChecklist::operator delete (void *address)
-{
-    ACLFilledChecklist *t = static_cast<ACLFilledChecklist *>(address);
-    cbdataFree(t);
-}
-
 ACLFilledChecklist::ACLFilledChecklist() :
         dst_peer(NULL),
         dst_rdns(NULL),
@@ -194,4 +178,3 @@ ACLFilledChecklist::ACLFilledChecklist(const acl_access *A, HttpRequest *http_re
         xstrncpy(rfc931, ident, USER_IDENT_SZ);
 #endif
 }
-
index 362711bf9ffef786d55f19619233958e403f0b60..7e22e3d7aada3a1cfa8edb3b9e50586487890aa9 100644 (file)
@@ -22,9 +22,6 @@ class HttpReply;
 class ACLFilledChecklist: public ACLChecklist
 {
 public:
-    void *operator new(size_t);
-    void operator delete(void *);
-
     ACLFilledChecklist();
     ACLFilledChecklist(const acl_access *, HttpRequest *, const char *ident);
     ~ACLFilledChecklist();
@@ -89,7 +86,7 @@ private:
     /// not implemented; will cause link failures if used
     ACLFilledChecklist &operator=(const ACLFilledChecklist &);
 
-    CBDATA_CLASS(ACLFilledChecklist);
+    CBDATA_CLASS2(ACLFilledChecklist);
 };
 
 /// convenience and safety wrapper for dynamic_cast<ACLFilledChecklist*>