]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/acl/StringData.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / StringData.cc
index fa9265037b9945def9dca5c78c072e6330a65276..c67fd456d29ae5e47a2fe8b27d815002092b361a 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
  *
  */
 
 #include "squid.h"
-#include "acl/StringData.h"
 #include "acl/Checklist.h"
+#include "acl/StringData.h"
+#include "cache_cf.h"
+#include "Debug.h"
 #include "wordlist.h"
 
-
 ACLStringData::ACLStringData() : values (NULL)
 {}
 
@@ -67,6 +66,12 @@ splaystrcmp (char * const &l, char * const &r)
     return strcmp (l,r);
 }
 
+void
+ACLStringData::insert(const char *value)
+{
+    values = values->insert(xstrdup(value), splaystrcmp);
+}
+
 bool
 ACLStringData::match(char const *toFind)
 {