]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix compiler warnings in new acl random
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 1 Nov 2009 10:45:26 +0000 (11:45 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 1 Nov 2009 10:45:26 +0000 (11:45 +0100)
src/acl/Random.cc

index 9d7744606e9cbdc4295ff7c7401a36d4003c3541..e88d2f8e93f5a5216fe8c36804c8c3a3f8ddeb38 100644 (file)
@@ -44,15 +44,13 @@ ACLRandom::clone() const
     return new ACLRandom(*this);
 }
 
-ACLRandom::ACLRandom (char const *theClass) : data (NULL), class_ (theClass)
+ACLRandom::ACLRandom (char const *theClass) : data (0.0), class_ (theClass)
 {
     memset(pattern, 0 , sizeof(pattern));
 }
 
 ACLRandom::ACLRandom (ACLRandom const & old) : data (old.data), class_ (old.class_)
 {
-    /* we don't have copy constructors for the data yet */
-    assert (!old.data);
     memcpy(pattern, old.pattern, sizeof(pattern));
 }
 
@@ -77,7 +75,7 @@ ACLRandom::empty () const
 void
 ACLRandom::parse()
 {
-    char *t = NULL;
+    char *t;
     char bufa[256], bufb[256];
 
     t = strtokFile();