diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-10 08:06:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-10 08:06:06 +0100 |
commit | fb8a3fac5d448451794804a7470be45fa14da453 (patch) | |
tree | 110395d7cf3b7ad304e34a007ea597263adcfad8 /connectivity/source/inc/java/GlobalRef.hxx | |
parent | b8ecfd83bac98ea58a435c59856da8fd94f5c6d9 (diff) |
loplugin:nullptr: More NULL -> nullptr automatic rewrite
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
Diffstat (limited to 'connectivity/source/inc/java/GlobalRef.hxx')
-rw-r--r-- | connectivity/source/inc/java/GlobalRef.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/inc/java/GlobalRef.hxx b/connectivity/source/inc/java/GlobalRef.hxx index 760e01886c99..5160e81c58ac 100644 --- a/connectivity/source/inc/java/GlobalRef.hxx +++ b/connectivity/source/inc/java/GlobalRef.hxx @@ -35,12 +35,12 @@ namespace connectivity { namespace jdbc { public: GlobalRef() - :m_object( NULL ) + :m_object( nullptr ) { } GlobalRef( const GlobalRef& _source ) - :m_object( NULL ) + :m_object( nullptr ) { *this = _source; } @@ -62,17 +62,17 @@ namespace connectivity { namespace jdbc void reset() { - if ( m_object != NULL ) + if ( m_object != nullptr ) { SDBThreadAttach t; t.env().DeleteGlobalRef( m_object ); - m_object = NULL; + m_object = nullptr; } } void set( JNIEnv& _environment, T _object ) { - if ( m_object != NULL ) + if ( m_object != nullptr ) _environment.DeleteGlobalRef( m_object ); m_object = _object; if ( m_object ) @@ -91,7 +91,7 @@ namespace connectivity { namespace jdbc bool is() const { - return m_object != NULL; + return m_object != nullptr; } private: |