From 87686af6b85f3bb06c0d75dd870455236506cb7b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:20:48 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I7a5fda2606f42e2736ad0618f2d8bcc5ba4028fb --- pyuno/inc/pyuno/pyuno.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyuno/inc') 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 -- cgit