]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Allow constant pointers to non-constant HttpMsgs.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 21 Feb 2011 05:06:20 +0000 (22:06 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 21 Feb 2011 05:06:20 +0000 (22:06 -0700)
src/HttpMsg.h

index 25e89281171e38bda701cabc1f0d42a4bebe25fb..12b8c7484e8e4b1c654801b48d5216301a99c12c 100644 (file)
@@ -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