]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - include/splay.h
SourceFormat Enforcement
[thirdparty/squid.git] / include / splay.h
index 21719c3265dcac6c13690dbbd60f10ed49bffdce..acf42709ea0ec9c51cc3bb0f9c20f511344ffced 100644 (file)
@@ -86,9 +86,9 @@ public:
     /// recursively visit all nodes, in left-to-right order
     template <class Visitor> void visit(Visitor &v) const;
 
-    size_t elements;
 private:
     mutable SplayNode<V> * head;
+    size_t elements;
 };
 
 SQUIDCEXTERN int splayLastResult;
@@ -299,7 +299,7 @@ template <class V>
 void
 Splay<V>::insert(Value const &value, SPLAYCMP *compare)
 {
-    assert (!find (value, compare));
+    assert (find (value, compare) == NULL);
     if (head == NULL)
         head = new SplayNode<V>(value);
     else