summaryrefslogtreecommitdiff
path: root/include/rtl
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/rtl
parent46fe3bddebf30775ae19eaa0fefe1d8e2f78eced (diff)
More loplugin:nullptr automatic rewrite (within templates)
Change-Id: I9bc06cfb5eeb38fd7ae7fb25f876ea9f96e4a65a
Diffstat (limited to 'include/rtl')
-rw-r--r--include/rtl/ref.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rtl/ref.hxx b/include/rtl/ref.hxx
index 3ffcfc049c15..ea219cdae77b 100644
--- a/include/rtl/ref.hxx
+++ b/include/rtl/ref.hxx
@@ -153,7 +153,7 @@ public:
if (m_pBody)
{
reference_type * const pOld = m_pBody;
- m_pBody = 0;
+ m_pBody = NULL;
pOld->release();
}
return *this;
@@ -174,7 +174,7 @@ public:
*/
inline reference_type * SAL_CALL operator->() const
{
- assert(m_pBody != 0);
+ assert(m_pBody != NULL);
return m_pBody;
}
@@ -183,7 +183,7 @@ public:
*/
inline reference_type & SAL_CALL operator*() const
{
- assert(m_pBody != 0);
+ assert(m_pBody != NULL);
return *m_pBody;
}
@@ -192,7 +192,7 @@ public:
*/
inline bool SAL_CALL is() const
{
- return (m_pBody != 0);
+ return (m_pBody != NULL);
}