diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:20:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:33 +0100 |
commit | 87686af6b85f3bb06c0d75dd870455236506cb7b (patch) | |
tree | b29e54ce4b62042a0d559be9186b9f802b077384 /pyuno/inc | |
parent | 1fc2fe74f2db49b17abc3c4df7feec4f215052ca (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I7a5fda2606f42e2736ad0618f2d8bcc5ba4028fb
Diffstat (limited to 'pyuno/inc')
-rw-r--r-- | pyuno/inc/pyuno/pyuno.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyuno/inc/pyuno/pyuno.hxx b/pyuno/inc/pyuno/pyuno.hxx index b79d01dd10f3..30a1bdba05a8 100644 --- a/pyuno/inc/pyuno/pyuno.hxx +++ b/pyuno/inc/pyuno/pyuno.hxx @@ -90,7 +90,7 @@ class PyRef { PyObject *m; public: - PyRef () : m(0) {} + PyRef () : m(nullptr) {} PyRef( PyObject * p ) : m( p ) { Py_XINCREF( m ); } PyRef( PyObject * p, __sal_NoAcquire ) : m( p ) {} @@ -130,7 +130,7 @@ public: only seldom needed ! */ void scratch() { - m = 0; + m = nullptr; } /** returns 1 when the reference points to a python object python object, @@ -138,7 +138,7 @@ public: */ bool is() const { - return m != 0; + return m != nullptr; } struct Hash |