diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2021-06-09 09:25:29 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2021-06-09 09:43:13 -0700 |
commit | 9494c510af56d9c8593ab69017dcaa232210b235 (patch) | |
tree | d3bf62416d4a5423563c5b2893f2392a9f96e12f /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | |
parent | 9b496c2373dc4228726b6b3813bf759233e98094 (diff) | |
download | llvm-9494c510af56d9c8593ab69017dcaa232210b235.zip llvm-9494c510af56d9c8593ab69017dcaa232210b235.tar.gz llvm-9494c510af56d9c8593ab69017dcaa232210b235.tar.bz2 |
[lldb] Use C++11 default member initializers
This converts a default constructor's member initializers into C++11
default member initializers. This patch was automatically generated with
clang-tidy and the modernize-use-default-member-init check.
$ run-clang-tidy.py -header-filter='lldb' -checks='-*,modernize-use-default-member-init' -fix
This is a mass-refactoring patch and this commit will be added to
.git-blame-ignore-revs.
Differential revision: https://reviews.llvm.org/D103483
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h index 22f6c67..6ca0e75 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h @@ -229,7 +229,7 @@ struct PythonFormat< class PythonObject { public: - PythonObject() : m_py_obj(nullptr) {} + PythonObject() {} PythonObject(PyRefType type, PyObject *py_obj) { m_py_obj = py_obj; @@ -378,7 +378,7 @@ public: } protected: - PyObject *m_py_obj; + PyObject *m_py_obj = nullptr; }; |