summaryrefslogtreecommitdiff
path: root/include/com/sun/star
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-10 17:33:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-10 17:34:31 +0100
commit4a1edf626ad48b5955892e5590d75fa7ae5eaf58 (patch)
tree3ace4c2ac4da5529295780880f67fdfce09b6637 /include/com/sun/star
parent46fe3bddebf30775ae19eaa0fefe1d8e2f78eced (diff)
More loplugin:nullptr automatic rewrite (within templates)
Change-Id: I9bc06cfb5eeb38fd7ae7fb25f876ea9f96e4a65a
Diffstat (limited to 'include/com/sun/star')
-rw-r--r--include/com/sun/star/uno/Reference.h2
-rw-r--r--include/com/sun/star/uno/Reference.hxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/include/com/sun/star/uno/Reference.h b/include/com/sun/star/uno/Reference.h
index 8e266cd72f43..368c9982a2fd 100644
--- a/include/com/sun/star/uno/Reference.h
+++ b/include/com/sun/star/uno/Reference.h
@@ -408,7 +408,7 @@ public:
@return UNacquired interface pointer
*/
inline interface_type * SAL_CALL operator -> () const {
- assert(_pInterface != 0);
+ assert(_pInterface != NULL);
return castFromXInterface(_pInterface);
}
diff --git a/include/com/sun/star/uno/Reference.hxx b/include/com/sun/star/uno/Reference.hxx
index b25083d8e030..f7a713196eaa 100644
--- a/include/com/sun/star/uno/Reference.hxx
+++ b/include/com/sun/star/uno/Reference.hxx
@@ -113,7 +113,7 @@ inline Reference< interface_type >::~Reference()
template< class interface_type >
inline Reference< interface_type >::Reference()
{
- _pInterface = 0;
+ _pInterface = NULL;
}
template< class interface_type >
@@ -221,7 +221,7 @@ inline void Reference< interface_type >::clear()
if (_pInterface)
{
XInterface * const pOld = _pInterface;
- _pInterface = 0;
+ _pInterface = NULL;
pOld->release();
}
}
@@ -236,7 +236,7 @@ inline bool Reference< interface_type >::set(
_pInterface = castToXInterface(pInterface);
if (pOld)
pOld->release();
- return (0 != pInterface);
+ return (NULL != pInterface);
}
template< class interface_type >
@@ -247,7 +247,7 @@ inline bool Reference< interface_type >::set(
_pInterface = castToXInterface(pInterface);
if (pOld)
pOld->release();
- return (0 != pInterface);
+ return (NULL != pInterface);
}
template< class interface_type >