summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-17 12:23:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-18 21:59:23 +0100
commit5280b3eaa6e9a9ee5994c1459f459336908fc741 (patch)
tree5b45258b0065c4720efbf713748ab67b8bab48a8 /connectivity
parent06756e412b2a02030ce3355b3fe4e2ecc71d2301 (diff)
silence some coverity warnings
Change-Id: I5a530e37156b5cd36e8a07ac20851880a46f520d Reviewed-on: https://gerrit.libreoffice.org/44875 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/jdbc/Object.cxx2
-rw-r--r--connectivity/source/inc/java/GlobalRef.hxx2
-rw-r--r--connectivity/source/inc/java/lang/Object.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/jdbc/Object.cxx b/connectivity/source/drivers/jdbc/Object.cxx
index b8560ab99c1b..06ee354903c9 100644
--- a/connectivity/source/drivers/jdbc/Object.cxx
+++ b/connectivity/source/drivers/jdbc/Object.cxx
@@ -114,7 +114,7 @@ java_lang_Object::java_lang_Object( JNIEnv * pXEnv, jobject myObj )
object = pXEnv->NewGlobalRef( myObj );
}
-java_lang_Object::~java_lang_Object()
+java_lang_Object::~java_lang_Object() COVERITY_NOEXCEPT_FALSE
{
if( object )
{
diff --git a/connectivity/source/inc/java/GlobalRef.hxx b/connectivity/source/inc/java/GlobalRef.hxx
index 277cfa2dec1e..6ff20ce4c0e2 100644
--- a/connectivity/source/inc/java/GlobalRef.hxx
+++ b/connectivity/source/inc/java/GlobalRef.hxx
@@ -55,7 +55,7 @@ namespace connectivity { namespace jdbc
return *this;
}
- ~GlobalRef()
+ ~GlobalRef() COVERITY_NOEXCEPT_FALSE
{
reset();
}
diff --git a/connectivity/source/inc/java/lang/Object.hxx b/connectivity/source/inc/java/lang/Object.hxx
index f7d136ceacc0..0c8ff2ef1047 100644
--- a/connectivity/source/inc/java/lang/Object.hxx
+++ b/connectivity/source/inc/java/lang/Object.hxx
@@ -86,7 +86,7 @@ namespace connectivity
// The actual ctor
java_lang_Object();
- virtual ~java_lang_Object();
+ virtual ~java_lang_Object() COVERITY_NOEXCEPT_FALSE;
void saveRef( JNIEnv * pEnv, jobject myObj );
jobject getJavaObject() const { return object; }