diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-27 21:21:07 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-27 21:21:07 -0700 |
commit | 920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5 (patch) | |
tree | 71b5e956b39f848a5618ae0d1fef05ce4d946cb8 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
parent | 0660249cca89208f042b13913bf0bb5485527ec1 (diff) | |
download | llvm-920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5.zip llvm-920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5.tar.gz llvm-920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5.tar.bz2 |
[lldb] Use nullptr instead of NULL (NFC)
Identified with modernize-use-nullptr.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index ae61736..f0f5deb 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -923,7 +923,7 @@ const char *PythonException::toCString() const { PythonException::PythonException(const char *caller) { assert(PyErr_Occurred()); - m_exception_type = m_exception = m_traceback = m_repr_bytes = NULL; + m_exception_type = m_exception = m_traceback = m_repr_bytes = nullptr; PyErr_Fetch(&m_exception_type, &m_exception, &m_traceback); PyErr_NormalizeException(&m_exception_type, &m_exception, &m_traceback); PyErr_Clear(); @@ -951,7 +951,7 @@ void PythonException::Restore() { } else { PyErr_SetString(PyExc_Exception, toCString()); } - m_exception_type = m_exception = m_traceback = NULL; + m_exception_type = m_exception = m_traceback = nullptr; } PythonException::~PythonException() { |