summaryrefslogtreecommitdiff
path: root/include/comphelper/types.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-10 08:06:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-10 08:06:06 +0100
commitfb8a3fac5d448451794804a7470be45fa14da453 (patch)
tree110395d7cf3b7ad304e34a007ea597263adcfad8 /include/comphelper/types.hxx
parentb8ecfd83bac98ea58a435c59856da8fd94f5c6d9 (diff)
loplugin:nullptr: More NULL -> nullptr automatic rewrite
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
Diffstat (limited to 'include/comphelper/types.hxx')
-rw-r--r--include/comphelper/types.hxx6
1 files changed, 3 insertions, 3 deletions
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 <class TYPE>
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);
}