diff options
author | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 16:48:48 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 16:48:48 +0000 |
commit | 067cc9ea6978d9f018f1d0ef9f741ac1a7b5343b (patch) | |
tree | f2bfd771e73bb77af1355804623d4032de583d32 /cpp/src | |
parent | ab9ab59bdbcda45d4b46ebee90083e1c7079b4c6 (diff) | |
download | qpid-python-067cc9ea6978d9f018f1d0ef9f741ac1a7b5343b.tar.gz |
Remove use of dubious auto_ptr
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995129 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-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); } } |