diff options
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/evoab2/NResultSet.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/odbc/OResultSet.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/odbc/OStatement.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/inc/java/GlobalRef.hxx | 12 | ||||
-rw-r--r-- | connectivity/source/inc/java/LocalRef.hxx | 10 |
5 files changed, 14 insertions, 14 deletions
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx index 0b9310bbfdc0..1f1d1d970d4c 100644 --- a/connectivity/source/drivers/evoab2/NResultSet.cxx +++ b/connectivity/source/drivers/evoab2/NResultSet.cxx @@ -499,7 +499,7 @@ ESource * findSource( const char *id ) { ESourceList *pSourceList = nullptr; - g_return_val_if_fail (id != nullptr, NULL); + g_return_val_if_fail (id != nullptr, nullptr); if (!e_book_get_addressbooks (&pSourceList, nullptr)) pSourceList = nullptr; diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx index 42d081866ca8..39c04609c429 100644 --- a/connectivity/source/drivers/odbc/OResultSet.cxx +++ b/connectivity/source/drivers/odbc/OResultSet.cxx @@ -1281,7 +1281,7 @@ template < typename T, SQLINTEGER BufferLength > T OResultSet::getStmtOption (SQ { T result (dflt); OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); - N3SQLGetStmtAttr(m_aStatementHandle, fOption, &result, BufferLength, NULL); + N3SQLGetStmtAttr(m_aStatementHandle, fOption, &result, BufferLength, nullptr); return result; } template < typename T, SQLINTEGER BufferLength > SQLRETURN OResultSet::setStmtOption (SQLINTEGER fOption, T value) const diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx index 104a98f4b625..301522d14515 100644 --- a/connectivity/source/drivers/odbc/OStatement.cxx +++ b/connectivity/source/drivers/odbc/OStatement.cxx @@ -426,7 +426,7 @@ template < typename T, SQLINTEGER BufferLength > T OStatement_Base::getStmtOptio { T result (dflt); OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); - N3SQLGetStmtAttr(m_aStatementHandle, fOption, &result, BufferLength, NULL); + N3SQLGetStmtAttr(m_aStatementHandle, fOption, &result, BufferLength, nullptr); return result; } template < typename T, SQLINTEGER BufferLength > SQLRETURN OStatement_Base::setStmtOption (SQLINTEGER fOption, T value) const 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: diff --git a/connectivity/source/inc/java/LocalRef.hxx b/connectivity/source/inc/java/LocalRef.hxx index 2e0369a384c0..95135dfa0bba 100644 --- a/connectivity/source/inc/java/LocalRef.hxx +++ b/connectivity/source/inc/java/LocalRef.hxx @@ -38,7 +38,7 @@ namespace connectivity { namespace jdbc public: explicit LocalRef( JNIEnv& environment ) :m_environment( environment ) - ,m_object( NULL ) + ,m_object( nullptr ) { } @@ -56,7 +56,7 @@ namespace connectivity { namespace jdbc T release() { T t = m_object; - m_object = NULL; + m_object = nullptr; return t; } @@ -64,16 +64,16 @@ namespace connectivity { namespace jdbc void reset() { - if ( m_object != NULL ) + if ( m_object != nullptr ) { m_environment.DeleteLocalRef( m_object ); - m_object = NULL; + m_object = nullptr; } } JNIEnv& env() const { return m_environment; } T get() const { return m_object; } - bool is() const { return m_object != NULL; } + bool is() const { return m_object != nullptr; } private: LocalRef(LocalRef &) = delete; |