diff options
author | Ed Maste <emaste@freebsd.org> | 2014-04-20 00:31:37 +0000 |
---|---|---|
committer | Ed Maste <emaste@freebsd.org> | 2014-04-20 00:31:37 +0000 |
commit | d78c9576cafa6dd17aa0833bb9202549ebfc3739 (patch) | |
tree | dcff23687e41500db1ff39ee63c133fdc90d4e2a /lldb/source/Interpreter/CommandHistory.cpp | |
parent | 9844434151574f48a61be3f7ef879b750b1a09cb (diff) | |
download | bcm5719-llvm-d78c9576cafa6dd17aa0833bb9202549ebfc3739.tar.gz bcm5719-llvm-d78c9576cafa6dd17aa0833bb9202549ebfc3739.zip |
Switch NULL to C++11 nullptr in source/Interpreter
Patch by Robert Matusewicz
llvm-svn: 206711
Diffstat (limited to 'lldb/source/Interpreter/CommandHistory.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandHistory.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lldb/source/Interpreter/CommandHistory.cpp b/lldb/source/Interpreter/CommandHistory.cpp index 07ba6f14c28..26996a62564 100644 --- a/lldb/source/Interpreter/CommandHistory.cpp +++ b/lldb/source/Interpreter/CommandHistory.cpp @@ -41,17 +41,17 @@ CommandHistory::FindString (const char* input_str) const { Mutex::Locker locker(m_mutex); if (!input_str) - return NULL; + return nullptr; if (input_str[0] != g_repeat_char) - return NULL; + return nullptr; if (input_str[1] == '-') { bool success; size_t idx = Args::StringToUInt32 (input_str+2, 0, 0, &success); if (!success) - return NULL; + return nullptr; if (idx > m_history.size()) - return NULL; + return nullptr; idx = m_history.size() - idx; return m_history[idx].c_str(); @@ -59,7 +59,7 @@ CommandHistory::FindString (const char* input_str) const else if (input_str[1] == g_repeat_char) { if (m_history.empty()) - return NULL; + return nullptr; else return m_history.back().c_str(); } @@ -68,9 +68,9 @@ CommandHistory::FindString (const char* input_str) const bool success; uint32_t idx = Args::StringToUInt32 (input_str+1, 0, 0, &success); if (!success) - return NULL; + return nullptr; if (idx >= m_history.size()) - return NULL; + return nullptr; return m_history[idx].c_str(); } } @@ -81,7 +81,7 @@ CommandHistory::GetStringAtIndex (size_t idx) const Mutex::Locker locker(m_mutex); if (idx < m_history.size()) return m_history[idx].c_str(); - return NULL; + return nullptr; } const char* @@ -95,7 +95,7 @@ CommandHistory::GetRecentmostString () const { Mutex::Locker locker(m_mutex); if (m_history.empty()) - return NULL; + return nullptr; return m_history.back().c_str(); } |