From: Alex Rousskov Date: Wed, 15 Dec 2010 17:04:09 +0000 (-0700) Subject: Allow constant pointers to non-constant HttpMsgs. X-Git-Tag: take1~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a45511e1cfc8221dcb249b5ef6f3cc203116ccb2;p=thirdparty%2Fsquid.git Allow constant pointers to non-constant HttpMsgs. --- diff --git a/src/HttpMsg.h b/src/HttpMsg.h index 25e8928117..12b8c7484e 100644 --- a/src/HttpMsg.h +++ b/src/HttpMsg.h @@ -220,8 +220,7 @@ public: const Msg &operator *() const { return *msg; } Msg *operator ->() { return msg; } const Msg *operator ->() const { return msg; } - operator Msg *() { return msg; } - operator const Msg *() const { return msg; } + operator Msg *() const { return msg; } // add more as needed /// public access for HttpMsgPointerT copying and assignment; avoid