From fb8a3fac5d448451794804a7470be45fa14da453 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 10 Dec 2015 08:06:06 +0100 Subject: loplugin:nullptr: More NULL -> nullptr automatic rewrite Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d --- include/comphelper/types.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/comphelper/types.hxx') diff --git a/include/comphelper/types.hxx b/include/comphelper/types.hxx index 6901e6c52ded..e01e6f640f8f 100644 --- a/include/comphelper/types.hxx +++ b/include/comphelper/types.hxx @@ -57,19 +57,19 @@ namespace comphelper if (xComp.is()) { xComp->dispose(); - _rxComp = NULL; + _rxComp = nullptr; } } template bool getImplementation(TYPE*& _pObject, const css::uno::Reference< css::uno::XInterface >& _rxIFace) { - _pObject = NULL; + _pObject = nullptr; css::uno::Reference< css::lang::XUnoTunnel > xTunnel(_rxIFace, css::uno::UNO_QUERY); if (xTunnel.is()) _pObject = reinterpret_cast< TYPE* >(xTunnel->getSomething(TYPE::getUnoTunnelImplementationId())); - return (_pObject != NULL); + return (_pObject != nullptr); } -- cgit