From e919b8ae21a9a92bdea636c7c5de34bda1c29a3d Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 27 Mar 2007 21:23:40 +0000 Subject: * cpp/tests/BrokerChannelTest.cpp: Fix leak. * cpp/lib/broker/Connection.h: signature fix, pass const& instead of *. * cpp/lib/client/IncomingMessage.cpp: Correct error codes. * cpp/lib/broker/Reference.cpp: Fix TODO. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@523085 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/lib/broker/Connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/lib/broker/Connection.cpp') diff --git a/cpp/lib/broker/Connection.cpp b/cpp/lib/broker/Connection.cpp index ae0114cba9..dbc8149cb5 100644 --- a/cpp/lib/broker/Connection.cpp +++ b/cpp/lib/broker/Connection.cpp @@ -76,15 +76,15 @@ void Connection::close( getOutput().close(); } -void Connection::initiated(framing::ProtocolInitiation* header) { - version = ProtocolVersion(header->getMajor(), header->getMinor()); +void Connection::initiated(const framing::ProtocolInitiation& header) { + version = ProtocolVersion(header.getMajor(), header.getMinor()); FieldTable properties; string mechanisms("PLAIN"); string locales("en_US"); getChannel(0).init(0, *out, getVersion()); client = &getChannel(0).getAdatper().getProxy().getConnection(); client->start( - header->getMajor(), header->getMinor(), + header.getMajor(), header.getMinor(), properties, mechanisms, locales); } -- cgit v1.2.1