diff options
author | Alan Conway <aconway@apache.org> | 2007-03-27 21:23:40 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-03-27 21:23:40 +0000 |
commit | e919b8ae21a9a92bdea636c7c5de34bda1c29a3d (patch) | |
tree | a7fe9e99a591c67828e050f50993614487a3bb6e /cpp/lib/broker/Connection.cpp | |
parent | b35d8895e662990245385f416163c669391adad3 (diff) | |
download | qpid-python-e919b8ae21a9a92bdea636c7c5de34bda1c29a3d.tar.gz |
* 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
Diffstat (limited to 'cpp/lib/broker/Connection.cpp')
-rw-r--r-- | cpp/lib/broker/Connection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |