summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.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/ValueObject.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/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index c32bdc28148..72984c6c082 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -395,8 +395,8 @@ ValueObject::GetSummaryAsCString (ExecutionContextScope *exe_scope)
// Resize the formatted buffer in case every character
// uses the "\xXX" format and one extra byte for a NULL
cstr_buffer.resize(data_buffer.size() * 4 + 1);
- data.SetData (data_buffer.data(), data_buffer.size(), eByteOrderHost);
- bytes_read = process->ReadMemory (cstr_address, data_buffer.data(), fixed_length, error);
+ data.SetData (&data_buffer.front(), data_buffer.size(), eByteOrderHost);
+ bytes_read = process->ReadMemory (cstr_address, &data_buffer.front(), fixed_length, error);
if (bytes_read > 0)
{
sstr << '"';
@@ -423,11 +423,11 @@ ValueObject::GetSummaryAsCString (ExecutionContextScope *exe_scope)
// "\xXX" format and one extra byte for a NULL
cstr_buffer.resize (k_max_buf_size * 4 + 1);
- data.SetData (data_buffer.data(), data_buffer.size(), eByteOrderHost);
+ data.SetData (&data_buffer.front(), data_buffer.size(), eByteOrderHost);
size_t total_cstr_len = 0;
- while ((bytes_read = process->ReadMemory (cstr_address, data_buffer.data(), k_max_buf_size, error)) > 0)
+ while ((bytes_read = process->ReadMemory (cstr_address, &data_buffer.front(), k_max_buf_size, error)) > 0)
{
- size_t len = strlen(data_buffer.data());
+ size_t len = strlen(&data_buffer.front());
if (len == 0)
break;
if (len > bytes_read)
OpenPOWER on IntegriCloud