summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Communication.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-07-20 22:52:08 +0000
committerGreg Clayton <gclayton@apple.com>2010-07-20 22:52:08 +0000
commit471b31ce625e61664236c718f5f2a76135644514 (patch)
tree93a7423513ac5802698fb508ceec00c2a4bcd863 /lldb/source/Core/Communication.cpp
parent3462779369380e32e68cbf35b7490a2f61475c78 (diff)
downloadbcm5719-llvm-471b31ce625e61664236c718f5f2a76135644514.tar.gz
bcm5719-llvm-471b31ce625e61664236c718f5f2a76135644514.zip
Remove use of STL collection class use of the "data()" method since it isn't
part of C++'98. Most of these were "std::vector<T>::data()" and "std::string::data()". llvm-svn: 108957
Diffstat (limited to 'lldb/source/Core/Communication.cpp')
-rw-r--r--lldb/source/Core/Communication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Communication.cpp b/lldb/source/Core/Communication.cpp
index ee355dcd467..9fa06479511 100644
--- a/lldb/source/Core/Communication.cpp
+++ b/lldb/source/Core/Communication.cpp
@@ -248,7 +248,7 @@ Communication::GetCachedBytes (void *dst, size_t dst_len)
const size_t len = std::min<size_t>(dst_len, m_bytes.size());
- ::memcpy (dst, m_bytes.data(), len);
+ ::memcpy (dst, m_bytes.c_str(), len);
m_bytes.erase(m_bytes.begin(), m_bytes.begin() + len);
return len;
OpenPOWER on IntegriCloud