summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-06 19:58:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-09 13:28:36 +0000
commit66c3510ed3344e7e87564c3de39cf5531e688c6e (patch)
treed9898c468dd1a27461c04af32bf724c0bf09b699 /unotools
parent9df90559d40f029479c4481e31f88737b70742f6 (diff)
mark uncopyable with boost::noncopyable
Diffstat (limited to 'unotools')
-rw-r--r--unotools/inc/unotools/charclass.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/unotools/inc/unotools/charclass.hxx b/unotools/inc/unotools/charclass.hxx
index 4417fb278175..da9be2a5a7df 100644
--- a/unotools/inc/unotools/charclass.hxx
+++ b/unotools/inc/unotools/charclass.hxx
@@ -31,6 +31,7 @@
#define _UNOTOOLS_CHARCLASS_HXX
#include <ctype.h> // isdigit(), isalpha()
+#include <boost/noncopyable.hpp>
#include <tools/string.hxx>
#include <tools/solar.h>
#include <com/sun/star/i18n/KCharacterType.hpp>
@@ -74,17 +75,13 @@ const sal_Int32 nCharClassNumericTypeMask =
::com::sun::star::i18n::KCharacterType::BASE_FORM;
-class UNOTOOLS_DLLPUBLIC CharClass
+class UNOTOOLS_DLLPUBLIC CharClass : private boost::noncopyable
{
::com::sun::star::lang::Locale aLocale;
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCharacterClassification > xCC;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xSMgr;
mutable ::osl::Mutex aMutex;
- // not implemented, prevent usage
- CharClass( const CharClass& );
- CharClass& operator=( const CharClass& );
-
public:
/// Preferred ctor with service manager specified
CharClass(