From 2ecec9d08cdb61494ca7d6b72e9342a3a01171f7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Dec 2014 09:16:43 +0100 Subject: Mark classes as noncopyable Change-Id: I4262fb56d681c70a089638b876dc07b1f472f583 --- bridges/source/jni_uno/jni_info.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bridges') 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 + +#include #include #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; -- cgit