]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Further cleanup of acl->empty() methods
authorhno <>
Sun, 8 May 2005 12:53:58 +0000 (12:53 +0000)
committerhno <>
Sun, 8 May 2005 12:53:58 +0000 (12:53 +0000)
  - Fix dst acl
  - Refactor empty validation of splay trees

src/ACLARP.cc
src/ACLDestinationDomain.cc
src/ACLExtUser.cc
src/ACLIP.cc
src/ACLIdent.cc

index 8261c6b884a2687292700bee25b00cc86ea70421..bee51796d725441a1f034545f7bb1d86e08889dd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLARP.cc,v 1.14 2005/05/08 06:36:45 hno Exp $
+ * $Id: ACLARP.cc,v 1.15 2005/05/08 06:53:58 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -120,7 +120,7 @@ ACLARP::typeString() const
 bool
 ACLARP::empty () const
 {
-    return data == NULL;
+    return data->empty();
 }
 
 /* ==== BEGIN ARP ACL SUPPORT ============================================= */
index 97a9d072b11889910a5c09365c50c585e468b086..c403d80e2a5b96336594ffb7dd9f26b7e93a2d0e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLDestinationDomain.cc,v 1.9 2005/05/08 06:36:45 hno Exp $
+ * $Id: ACLDestinationDomain.cc,v 1.10 2005/05/08 06:53:58 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -106,7 +106,7 @@ ACLDestinationDomain::dump() const
 bool
 ACLDestinationDomain::empty () const
 {
-    return data == NULL;
+    return data->empty();
 }
 
 DestinationDomainLookup DestinationDomainLookup::instance_;
index 99a00b7ea1b75cc790e3968e8c65e51445ce5fd8..341f46b0b801f252a0bf3f57b55e52cede708410 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLExtUser.cc,v 1.7 2005/05/08 06:36:45 hno Exp $
+ * $Id: ACLExtUser.cc,v 1.8 2005/05/08 06:53:58 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -94,7 +94,7 @@ ACLExtUser::dump() const
 bool
 ACLExtUser::empty () const
 {
-    return data == NULL;
+    return data->empty();
 }
 
 ACL *
index 3ca6fc758530fb5754836c16dd5c57c28237df2f..0d3a5c856fdf7eb6a8fbd148989279f46252aa88 100644 (file)
@@ -355,7 +355,7 @@ ACLIP::dump() const
 bool
 ACLIP::empty () const
 {
-    return data == NULL;
+    return data->empty();
 }
 
 int
index 2aa48b2ebae8f1bb66e6ec9c3a54d81db2a6c58c..250aba51850434d19f434fe2f1820dd4bd63826b 100644 (file)
@@ -100,7 +100,7 @@ ACLIdent::dump() const
 bool
 ACLIdent::empty () const
 {
-    return data == NULL;
+    return data->empty();
 }
 
 ACL *