summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-03-03 17:54:53 +0000
committerGordon Sim <gsim@apache.org>2009-03-03 17:54:53 +0000
commit1092c42e7ae88681b45a51210932c98af0eaa38f (patch)
treee7be8f8949d5591d142f251c67c3df8703fee54e /cpp/src
parent50cf38c98dc657ab0823b6ea8df8e1a439dd17f5 (diff)
downloadqpid-python-1092c42e7ae88681b45a51210932c98af0eaa38f.tar.gz
Complete change started by r749621: "Avoid use of std::vector::data(), not available on some platforms."
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749669 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 41c79afd17..1e73ee1e51 100644
--- a/cpp/src/qpid/framing/FrameDecoder.cpp
+++ b/cpp/src/qpid/framing/FrameDecoder.cpp
@@ -74,7 +74,7 @@ void FrameDecoder::setFragment(const char* data, size_t size) {
}
std::pair<const char*, size_t> FrameDecoder::getFragment() const {
- return std::pair<const char*, size_t>(fragment.data(), fragment.size());
+ return std::pair<const char*, size_t>(&fragment[0], fragment.size());
}
}} // namespace qpid::framing