]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Block copy constructor. Not safe.
authorhno <>
Wed, 24 May 2006 02:30:48 +0000 (02:30 +0000)
committerhno <>
Wed, 24 May 2006 02:30:48 +0000 (02:30 +0000)
Should also block the assignment constructor, but it is currently in use
(privately) as part of the reset method.

src/HttpHeader.h

index 2850eb110d3729f0fb1d14c22863274350b8f53a..6c34deef5ee250443e3d0bf634a3ec43ba939293 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: HttpHeader.h,v 1.14 2006/05/09 21:48:51 wessels Exp $
+ * $Id: HttpHeader.h,v 1.15 2006/05/23 20:30:48 hno Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -242,6 +242,10 @@ public:
 
 private:
     HttpHeaderEntry *findLastEntry(http_hdr_type id) const;
+    // Make it non-copyable. Our destructor is a bit nasty...
+    HttpHeader(const HttpHeader &);
+    //assignment is used by the reset method, can't block it..
+    //const HttpHeader operator=(const HttpHeader &);
 };
 
 extern int httpHeaderParseQuotedString (const char *start, String *val);