]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Turned Vector::count and capacity protected
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 2 Feb 2014 17:10:57 +0000 (18:10 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 2 Feb 2014 17:10:57 +0000 (18:10 +0100)
src/HttpHeader.cc
src/base/Vector.h

index 5a96f5a26ec671771dc28f0736ebc579657a6300..ff441802c47c14e35f0aaa199bcc5dcd9616687c 100644 (file)
@@ -936,7 +936,7 @@ HttpHeader::insertEntry(HttpHeaderEntry * e)
     assert(e);
     assert_eid(e->id);
 
-    debugs(55, 7, HERE << this << " adding entry: " << e->id << " at " << entries.count);
+    debugs(55, 7, this << " adding entry: " << e->id << " at " << entries.size());
 
     if (CBIT_TEST(mask, e->id))
         ++ Headers[e->id].stat.repCount;
index ae3aba74fba525314056de8faa9342920c33b4ad..7ef43e2689a384a2a233aac290b49e3922415bd7 100644 (file)
@@ -122,10 +122,9 @@ public:
     const E& operator [] (unsigned i) const;
     E* data() const { return items; }
 
-    /* Do not change these, until the entry C struct is removed */
+protected:
     size_t capacity;
     size_t count;
-protected:
     E *items;
 };