From: Eduard Bagdasaryan Date: Thu, 19 Aug 2021 21:25:57 +0000 (+0300) Subject: Undone an out-of-scope change and added a missing 'auto' X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F877%2Fhead;p=thirdparty%2Fsquid.git Undone an out-of-scope change and added a missing 'auto' --- diff --git a/src/HappyConnOpener.cc b/src/HappyConnOpener.cc index f27ee7050f..0436e35b6f 100644 --- a/src/HappyConnOpener.cc +++ b/src/HappyConnOpener.cc @@ -574,7 +574,7 @@ HappyConnOpener::openFreshConnection(Attempt &attempt, PeerConnectionPointer &de AsyncCall::Pointer callConnect = asyncCall(48, 5, attempt.callbackMethodName, Dialer(this, attempt.callbackMethod)); const time_t connTimeout = dest->connectTimeout(fwdStart); - Comm::ConnOpener *cs = new Comm::ConnOpener(conn, callConnect, connTimeout); + auto cs = new Comm::ConnOpener(conn, callConnect, connTimeout); if (!conn->getPeer()) cs->setHost(host_); diff --git a/src/security/BlindPeerConnector.h b/src/security/BlindPeerConnector.h index 35f1aec00a..1710a66918 100644 --- a/src/security/BlindPeerConnector.h +++ b/src/security/BlindPeerConnector.h @@ -20,8 +20,6 @@ namespace Security class BlindPeerConnector: public Security::PeerConnector { CBDATA_CLASS(BlindPeerConnector); public: - typedef CbcPointer Pointer; - BlindPeerConnector(HttpRequestPointer &aRequest, const Comm::ConnectionPointer &aServerConn, AsyncCall::Pointer &aCallback,