[Libreoffice-commits] core.git: bridges/source
Stephan Bergmann
sbergman at redhat.com
Mon Dec 8 00:17:41 PST 2014
bridges/source/jni_uno/jni_info.h | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 2ecec9d08cdb61494ca7d6b72e9342a3a01171f7
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Dec 8 09:16:43 2014 +0100
Mark classes as noncopyable
Change-Id: I4262fb56d681c70a089638b876dc07b1f472f583
diff --git a/bridges/source/jni_uno/jni_info.h b/bridges/source/jni_uno/jni_info.h
index 2f10191..e030602 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;
More information about the Libreoffice-commits
mailing list