From 067cc9ea6978d9f018f1d0ef9f741ac1a7b5343b Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 8 Sep 2010 16:48:48 +0000 Subject: Remove use of dubious auto_ptr git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995129 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/RdmaConnector.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/client/RdmaConnector.cpp b/cpp/src/qpid/client/RdmaConnector.cpp index 8bcb34f352..f317fb9e4d 100644 --- a/cpp/src/qpid/client/RdmaConnector.cpp +++ b/cpp/src/qpid/client/RdmaConnector.cpp @@ -52,9 +52,6 @@ using boost::str; class RdmaConnector : public Connector, public sys::Codec { - struct Buff; - - typedef Rdma::Buffer BufferBase; typedef std::deque Frames; const uint16_t maxFrameSize; @@ -341,11 +338,11 @@ void RdmaConnector::writebuff(Rdma::AsynchIO&) { Codec* codec = securityLayer.get() ? (Codec*) securityLayer.get() : (Codec*) this; if (codec->canEncode()) { - std::auto_ptr buffer = std::auto_ptr(aio->getBuffer()); + Rdma::Buffer* buffer = aio->getBuffer(); size_t encoded = codec->encode(buffer->bytes(), buffer->byteCount()); buffer->dataCount(encoded); - aio->queueWrite(buffer.release()); + aio->queueWrite(buffer); } } -- cgit v1.2.1