From: Amos Jeffries Date: Sat, 18 Jun 2011 05:26:09 +0000 (+1200) Subject: ICC compatibility: remove const on Comm::Connection::getPeer() X-Git-Tag: take08~55^2~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=743c8e20706c4bd7b93aec251127daf4b7d829f2;p=thirdparty%2Fsquid.git ICC compatibility: remove const on Comm::Connection::getPeer() --- diff --git a/src/comm/Connection.cc b/src/comm/Connection.cc index 51b1711267..628d054d7d 100644 --- a/src/comm/Connection.cc +++ b/src/comm/Connection.cc @@ -68,7 +68,7 @@ Comm::Connection::close() } } -peer * const +peer * Comm::Connection::getPeer() const { if (cbdataReferenceValid(_peer)) diff --git a/src/comm/Connection.h b/src/comm/Connection.h index 3b7e4e6614..a387b4c723 100644 --- a/src/comm/Connection.h +++ b/src/comm/Connection.h @@ -112,7 +112,7 @@ public: * The caller is responsible for all CBDATA operations regarding the * used of the pointer returned. */ - peer * const getPeer() const; + peer * getPeer() const; /** alter the stored peer pointer. * Perform appropriate CBDATA operations for locking the peer pointer diff --git a/src/comm/stub_libcomm.cc b/src/comm/stub_libcomm.cc index 16a80a30db..3a85d92671 100644 --- a/src/comm/stub_libcomm.cc +++ b/src/comm/stub_libcomm.cc @@ -17,7 +17,7 @@ Comm::Connection::Connection() STUB Comm::Connection::~Connection() STUB Comm::ConnectionPointer Comm::Connection::copyDetails() const STUB_RETVAL(NULL) void Comm::Connection::close() STUB -peer * const Comm::Connection::getPeer() const STUB_RETVAL(NULL) +peer * Comm::Connection::getPeer() const STUB_RETVAL(NULL) void Comm::Connection::setPeer(peer * p) STUB #include "comm/ConnOpener.h"