summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-08 09:16:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-08 09:17:04 +0100
commit2ecec9d08cdb61494ca7d6b72e9342a3a01171f7 (patch)
tree3e63410c92f192dd99eb9948338f27bf6b4daf45 /bridges
parent3338f479182a5face7f143bdc4b9ea9067028887 (diff)
Mark classes as noncopyable
Change-Id: I4262fb56d681c70a089638b876dc07b1f472f583
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/jni_uno/jni_info.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/bridges/source/jni_uno/jni_info.h b/bridges/source/jni_uno/jni_info.h
index 2f1019195bfb..e030602ff983 100644
--- a/bridges/source/jni_uno/jni_info.h
+++ b/bridges/source/jni_uno/jni_info.h
@@ -20,6 +20,9 @@
#ifndef INCLUDED_BRIDGES_SOURCE_JNI_UNO_JNI_INFO_H
#define INCLUDED_BRIDGES_SOURCE_JNI_UNO_JNI_INFO_H
+#include <sal/config.h>
+
+#include <boost/noncopyable.hpp>
#include <boost/unordered_map.hpp>
#include "jni_base.h"
@@ -58,7 +61,7 @@ inline bool is_XInterface( typelib_TypeDescriptionReference * type )
OUString::unacquired( &type->pTypeName ) == "com.sun.star.uno.XInterface");
}
-struct JNI_type_info
+struct JNI_type_info: private boost::noncopyable
{
::com::sun::star::uno::TypeDescription m_td;
jclass m_class;
@@ -103,7 +106,7 @@ private:
virtual ~JNI_compound_type_info() {}
};
-struct JNI_type_info_holder
+struct JNI_type_info_holder: private boost::noncopyable
{
JNI_type_info * m_info;
inline JNI_type_info_holder()
@@ -114,7 +117,7 @@ struct JNI_type_info_holder
typedef ::boost::unordered_map<
OUString, JNI_type_info_holder, OUStringHash > t_str2type;
-class JNI_info
+class JNI_info: private boost::noncopyable
{
mutable ::osl::Mutex m_mutex;
mutable t_str2type m_type_map;