diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:27:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:55 +0100 |
commit | 715cabb4d4bdaa5d764ee9461345a02b527b9f5a (patch) | |
tree | c0d9f9b2838a4f08708f04ad93a9d05740cc9f60 /include/uno/dispatcher.hxx | |
parent | b4af1664402ce1008e168d18e5e10b5d8f946f1c (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I5bd7c5251daeeb6e0e98ef23588b2e6d7e580b78
Diffstat (limited to 'include/uno/dispatcher.hxx')
-rw-r--r-- | include/uno/dispatcher.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/uno/dispatcher.hxx b/include/uno/dispatcher.hxx index e457713fff4d..75bf1a7503cf 100644 --- a/include/uno/dispatcher.hxx +++ b/include/uno/dispatcher.hxx @@ -46,7 +46,7 @@ public: uno_Interface * m_pUnoI; inline bool is() const - { return m_pUnoI != 0; } + { return m_pUnoI != NULL; } inline ~UnoInterfaceReference(); inline UnoInterfaceReference(); @@ -84,13 +84,13 @@ private: inline UnoInterfaceReference::~UnoInterfaceReference() { - if (m_pUnoI != 0) + if (m_pUnoI != NULL) (*m_pUnoI->release)( m_pUnoI ); } inline UnoInterfaceReference::UnoInterfaceReference() - : m_pUnoI( 0 ) + : m_pUnoI( NULL ) { } @@ -105,7 +105,7 @@ inline UnoInterfaceReference::UnoInterfaceReference( inline UnoInterfaceReference::UnoInterfaceReference( uno_Interface * pUnoI ) : m_pUnoI( pUnoI ) { - if (m_pUnoI != 0) + if (m_pUnoI != NULL) (*m_pUnoI->acquire)( m_pUnoI ); } @@ -114,7 +114,7 @@ inline UnoInterfaceReference::UnoInterfaceReference( UnoInterfaceReference const & ref ) : m_pUnoI( ref.m_pUnoI ) { - if (m_pUnoI != 0) + if (m_pUnoI != NULL) (*m_pUnoI->acquire)( m_pUnoI ); } @@ -122,9 +122,9 @@ inline UnoInterfaceReference::UnoInterfaceReference( inline UnoInterfaceReference & UnoInterfaceReference::set( uno_Interface * pUnoI ) { - if (pUnoI != 0) + if (pUnoI != NULL) (*pUnoI->acquire)( pUnoI ); - if (m_pUnoI != 0) + if (m_pUnoI != NULL) (*m_pUnoI->release)( m_pUnoI ); m_pUnoI = pUnoI; return *this; @@ -134,7 +134,7 @@ inline UnoInterfaceReference & UnoInterfaceReference::set( inline UnoInterfaceReference & UnoInterfaceReference::set( uno_Interface * pUnoI, __sal_NoAcquire ) { - if (m_pUnoI != 0) + if (m_pUnoI != NULL) (*m_pUnoI->release)( m_pUnoI ); m_pUnoI = pUnoI; return *this; @@ -143,10 +143,10 @@ inline UnoInterfaceReference & UnoInterfaceReference::set( inline void UnoInterfaceReference::clear() { - if (m_pUnoI != 0) + if (m_pUnoI != NULL) { (*m_pUnoI->release)( m_pUnoI ); - m_pUnoI = 0; + m_pUnoI = NULL; } } |