]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: Allow constant pointers to non-constant HttpMsgs
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 1 Apr 2011 01:14:21 +0000 (19:14 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 1 Apr 2011 01:14:21 +0000 (19:14 -0600)
src/HttpMsg.h

index 1da6b011185b93f176f480b7097cff9ecbe648da..7eae593f55e929566d1ac90abd0631e988b92754 100644 (file)
@@ -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