From: hno <> Date: Wed, 24 May 2006 02:30:48 +0000 (+0000) Subject: Block copy constructor. Not safe. X-Git-Tag: SQUID_3_0_PRE4~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e26baea7236a185412202ed49590aa9dc9f2493;p=thirdparty%2Fsquid.git Block copy constructor. Not safe. Should also block the assignment constructor, but it is currently in use (privately) as part of the reset method. --- diff --git a/src/HttpHeader.h b/src/HttpHeader.h index 2850eb110d..6c34deef5e 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -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);