diff options
author | Greg Clayton <gclayton@apple.com> | 2010-07-20 22:52:08 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-07-20 22:52:08 +0000 |
commit | 471b31ce625e61664236c718f5f2a76135644514 (patch) | |
tree | 93a7423513ac5802698fb508ceec00c2a4bcd863 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 3462779369380e32e68cbf35b7490a2f61475c78 (diff) | |
download | bcm5719-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/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index fcf00270514..ea5ac5cd14f 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -1313,13 +1313,13 @@ ProcessGDBRemote::GetSTDOUT (char *buf, size_t buf_size, Error &error) ProcessGDBRemoteLog::LogIf (GDBR_LOG_PROCESS, "ProcessGDBRemote::%s (&%p[%u]) ...", __FUNCTION__, buf, buf_size); if (bytes_available > buf_size) { - memcpy(buf, m_stdout_data.data(), buf_size); + memcpy(buf, m_stdout_data.c_str(), buf_size); m_stdout_data.erase(0, buf_size); bytes_available = buf_size; } else { - memcpy(buf, m_stdout_data.data(), bytes_available); + memcpy(buf, m_stdout_data.c_str(), bytes_available); m_stdout_data.clear(); //ResetEventBits(eBroadcastBitSTDOUT); |