summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/java
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-07 12:10:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-07 12:35:57 +0100
commitc6be3cf03b0c48fba99e785f18a61c798d3bb5be (patch)
tree730dd88f050e43977cb43e8318dc77141a996d98 /connectivity/source/inc/java
parente92e1959ca18cc921fa97f1cbd28dc96a9177841 (diff)
loplugin:deletedspecial
Change-Id: I0faa47383f8952a74742a640ab2af602b4fcba8f
Diffstat (limited to 'connectivity/source/inc/java')
-rw-r--r--connectivity/source/inc/java/ContextClassLoader.hxx4
-rw-r--r--connectivity/source/inc/java/LocalRef.hxx4
-rw-r--r--connectivity/source/inc/java/lang/Object.hxx9
3 files changed, 8 insertions, 9 deletions
diff --git a/connectivity/source/inc/java/ContextClassLoader.hxx b/connectivity/source/inc/java/ContextClassLoader.hxx
index 6384507264bd..58e3789c9b60 100644
--- a/connectivity/source/inc/java/ContextClassLoader.hxx
+++ b/connectivity/source/inc/java/ContextClassLoader.hxx
@@ -73,8 +73,8 @@ namespace connectivity { namespace jdbc
}
private:
- ContextClassLoaderScope(ContextClassLoaderScope &); // not defined
- void operator =(ContextClassLoaderScope &); // not defined
+ ContextClassLoaderScope(ContextClassLoaderScope &) SAL_DELETED_FUNCTION;
+ void operator =(ContextClassLoaderScope &) SAL_DELETED_FUNCTION;
void pop( bool clearExceptions );
diff --git a/connectivity/source/inc/java/LocalRef.hxx b/connectivity/source/inc/java/LocalRef.hxx
index 92a699bee24d..048f43afc8f6 100644
--- a/connectivity/source/inc/java/LocalRef.hxx
+++ b/connectivity/source/inc/java/LocalRef.hxx
@@ -80,8 +80,8 @@ namespace connectivity { namespace jdbc
bool is() const { return m_object != NULL; }
private:
- LocalRef(LocalRef &); // not defined
- void operator =(LocalRef &); // not defined
+ LocalRef(LocalRef &) SAL_DELETED_FUNCTION;
+ void operator =(LocalRef &) SAL_DELETED_FUNCTION;
protected:
JNIEnv& m_environment;
diff --git a/connectivity/source/inc/java/lang/Object.hxx b/connectivity/source/inc/java/lang/Object.hxx
index e1c136ae5348..adaa7a87a7ad 100644
--- a/connectivity/source/inc/java/lang/Object.hxx
+++ b/connectivity/source/inc/java/lang/Object.hxx
@@ -46,8 +46,8 @@ namespace connectivity
class SDBThreadAttach
{
jvmaccess::VirtualMachine::AttachGuard m_aGuard;
- SDBThreadAttach(SDBThreadAttach&);
- SDBThreadAttach& operator= (SDBThreadAttach&);
+ SDBThreadAttach(SDBThreadAttach&) SAL_DELETED_FUNCTION;
+ SDBThreadAttach& operator= (SDBThreadAttach&) SAL_DELETED_FUNCTION;
public:
SDBThreadAttach();
~SDBThreadAttach();
@@ -68,9 +68,8 @@ namespace connectivity
class java_lang_Object
{
- // operator= and the copy ctor are forbidden
- java_lang_Object& operator= (java_lang_Object&);
- java_lang_Object(java_lang_Object&);
+ java_lang_Object& operator= (java_lang_Object&) SAL_DELETED_FUNCTION;
+ java_lang_Object(java_lang_Object&) SAL_DELETED_FUNCTION;
protected:
// The Java handle to this class