diff options
-rw-r--r-- | cpp/src/qpid/client/RdmaConnector.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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<framing::AMQFrame> 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<BufferBase> buffer = std::auto_ptr<BufferBase>(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); } } |