summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-03-03 14:42:11 +0000
committerAlan Conway <aconway@apache.org>2009-03-03 14:42:11 +0000
commit2b86e1de4f37ce69ba32cfcfdfffeba237270626 (patch)
tree3823e53d706463a8710668bc0564110578844fe4 /cpp/src
parentefac6d2dc3aba4ac590da1260ff843be7920e819 (diff)
downloadqpid-python-2b86e1de4f37ce69ba32cfcfdfffeba237270626.tar.gz
Avoid use of std::vector::data(), not available on some platforms.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749621 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/framing/FrameDecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/FrameDecoder.cpp b/cpp/src/qpid/framing/FrameDecoder.cpp
index 6f0ae9756f..41c79afd17 100644
--- a/cpp/src/qpid/framing/FrameDecoder.cpp
+++ b/cpp/src/qpid/framing/FrameDecoder.cpp
@@ -70,7 +70,7 @@ bool FrameDecoder::decode(Buffer& buffer) {
void FrameDecoder::setFragment(const char* data, size_t size) {
fragment.resize(size);
- ::memcpy(fragment.data(), data, size);
+ ::memcpy(&fragment[0], data, size);
}
std::pair<const char*, size_t> FrameDecoder::getFragment() const {