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
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index 90eb66c..410efc6 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -285,7 +285,10 @@
m_getopt_table[j].val = 0;
}
- return m_getopt_table.data();
+ if (m_getopt_table.empty())
+ return NULL;
+
+ return &m_getopt_table.front();
}