aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/OptionValueArray.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2014-04-20 00:31:37 +0000
committerEd Maste <emaste@freebsd.org>2014-04-20 00:31:37 +0000
commitd78c9576cafa6dd17aa0833bb9202549ebfc3739 (patch)
treedcff23687e41500db1ff39ee63c133fdc90d4e2a /lldb/source/Interpreter/OptionValueArray.cpp
parent9844434151574f48a61be3f7ef879b750b1a09cb (diff)
downloadllvm-d78c9576cafa6dd17aa0833bb9202549ebfc3739.zip
llvm-d78c9576cafa6dd17aa0833bb9202549ebfc3739.tar.gz
llvm-d78c9576cafa6dd17aa0833bb9202549ebfc3739.tar.bz2
Switch NULL to C++11 nullptr in source/Interpreter
Patch by Robert Matusewicz llvm-svn: 206711
Diffstat (limited to 'lldb/source/Interpreter/OptionValueArray.cpp')
-rw-r--r--lldb/source/Interpreter/OptionValueArray.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/OptionValueArray.cpp b/lldb/source/Interpreter/OptionValueArray.cpp
index ee70a0a..769aadd 100644
--- a/lldb/source/Interpreter/OptionValueArray.cpp
+++ b/lldb/source/Interpreter/OptionValueArray.cpp
@@ -90,12 +90,12 @@ OptionValueArray::GetSubValue (const ExecutionContext *exe_ctx,
const char *end_bracket = strchr (name+1, ']');
if (end_bracket)
{
- const char *sub_value = NULL;
+ const char *sub_value = nullptr;
if (end_bracket[1])
sub_value = end_bracket + 1;
std::string index_str (name+1, end_bracket);
const size_t array_count = m_values.size();
- int32_t idx = Args::StringToSInt32(index_str.c_str(), INT32_MAX, 0, NULL);
+ int32_t idx = Args::StringToSInt32(index_str.c_str(), INT32_MAX, 0, nullptr);
if (idx != INT32_MAX)
{
;