summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/java/LocalRef.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/inc/java/LocalRef.hxx')
-rw-r--r--connectivity/source/inc/java/LocalRef.hxx10
1 files changed, 5 insertions, 5 deletions
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;