From 6e26baea7236a185412202ed49590aa9dc9f2493 Mon Sep 17 00:00:00 2001 From: hno <> Date: Wed, 24 May 2006 02:30:48 +0000 Subject: [PATCH] Block copy constructor. Not safe. Should also block the assignment constructor, but it is currently in use (privately) as part of the reset method. --- src/HttpHeader.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.47.2