From: Alex Rousskov Date: Fri, 1 Apr 2011 01:14:21 +0000 (-0600) Subject: Cleanup: Allow constant pointers to non-constant HttpMsgs X-Git-Tag: SQUID_3_1_12~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18713d5b7b10aeb53b01a15f5557cf0d100395fc;p=thirdparty%2Fsquid.git Cleanup: Allow constant pointers to non-constant HttpMsgs --- diff --git a/src/HttpMsg.h b/src/HttpMsg.h index 1da6b01118..7eae593f55 100644 --- a/src/HttpMsg.h +++ b/src/HttpMsg.h @@ -208,8 +208,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