diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-27 21:58:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-28 09:20:32 +0100 |
commit | 865ef9c4488ed02941526e5f6d1e17a76c73bbbe (patch) | |
tree | dacf2405dceaa150a108715113cf3f54c09f6551 /linguistic/inc | |
parent | 7e276c3e0fa333348fa82e385feba3f5e61acdd0 (diff) |
unused ctor, and use boost::noncopyable
Diffstat (limited to 'linguistic/inc')
-rw-r--r-- | linguistic/inc/linguistic/spelldta.hxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/linguistic/inc/linguistic/spelldta.hxx b/linguistic/inc/linguistic/spelldta.hxx index afc8fab96564..827dad15a3f4 100644 --- a/linguistic/inc/linguistic/spelldta.hxx +++ b/linguistic/inc/linguistic/spelldta.hxx @@ -35,10 +35,12 @@ #include <tools/solar.h> -#include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type +#include <uno/lbnames.h> #include <cppuhelper/implbase2.hxx> #include <linguistic/lngdllapi.h> +#include <boost/noncopyable.hpp> + namespace com { namespace sun { namespace star { namespace linguistic2 { class XDictionaryList; @@ -75,27 +77,22 @@ void SearchSimilarText( const rtl::OUString &rText, sal_Int16 nLanguage, /////////////////////////////////////////////////////////////////////////// -class SpellAlternatives : - public cppu::WeakImplHelper2 +class SpellAlternatives + : public cppu::WeakImplHelper2 < ::com::sun::star::linguistic2::XSpellAlternatives, ::com::sun::star::linguistic2::XSetSpellAlternatives > + , private ::boost::noncopyable { ::com::sun::star::uno::Sequence< ::rtl::OUString > aAlt; // list of alternatives, may be empty. ::rtl::OUString aWord; sal_Int16 nType; // type of failure sal_Int16 nLanguage; - // disallow copy-constructor and assignment-operator for now - SpellAlternatives(const SpellAlternatives &); - SpellAlternatives & operator = (const SpellAlternatives &); - public: SpellAlternatives(); SpellAlternatives(const ::rtl::OUString &rWord, sal_Int16 nLang, sal_Int16 nFailureType, - const ::rtl::OUString &rRplcWord ); - SpellAlternatives(const ::rtl::OUString &rWord, sal_Int16 nLang, sal_Int16 nFailureType, const ::com::sun::star::uno::Sequence< ::rtl::OUString > &rAlternatives ); virtual ~SpellAlternatives(); |