diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-07 22:54:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-08 12:02:37 +0000 |
commit | a9243992ed564e0e0a133909f0f8561bae2b1e42 (patch) | |
tree | e49dffcf8825bc9c718f91da9117f2d4cf9a28f7 /i18nutil | |
parent | bd70fd8df2efe4df3ab1a24a9071ae6621e058cb (diff) |
throw a noncopyable pattern at oneToOneMappingWithFlag
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/inc/i18nutil/oneToOneMapping.hxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/i18nutil/inc/i18nutil/oneToOneMapping.hxx b/i18nutil/inc/i18nutil/oneToOneMapping.hxx index a0ec1861c8d3..d40dd1d42cc4 100644 --- a/i18nutil/inc/i18nutil/oneToOneMapping.hxx +++ b/i18nutil/inc/i18nutil/oneToOneMapping.hxx @@ -29,6 +29,7 @@ #define INCLUDED_I18NUTIL_TRANSLITERATION_ONETOONEMAPPING_HXX #include <utility> +#include <boost/noncopyable.hpp> #include <rtl/ustring.hxx> #include "i18nutildllapi.h" @@ -69,14 +70,10 @@ protected: size_t mnSize; }; -class I18NUTIL_DLLPUBLIC oneToOneMappingWithFlag : public oneToOneMapping +class I18NUTIL_DLLPUBLIC oneToOneMappingWithFlag : private boost::noncopyable, public oneToOneMapping { friend class widthfolding; -private: - // no copy, no substitution - I18NUTIL_DLLPRIVATE oneToOneMappingWithFlag( const oneToOneMappingWithFlag& ); - I18NUTIL_DLLPRIVATE oneToOneMappingWithFlag& operator=( const oneToOneMappingWithFlag& ); public: oneToOneMappingWithFlag( UnicodePairWithFlag *rpTableWF, const size_t rnSize, const UnicodePairFlag rnFlag ); virtual ~oneToOneMappingWithFlag(); |