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 | |
parent | 7e276c3e0fa333348fa82e385feba3f5e61acdd0 (diff) |
unused ctor, and use boost::noncopyable
-rw-r--r-- | linguistic/inc/linguistic/spelldta.hxx | 15 | ||||
-rw-r--r-- | linguistic/source/spelldta.cxx | 15 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 6 insertions, 25 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(); diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx index c197fea767e6..90d1d6092318 100644 --- a/linguistic/source/spelldta.cxx +++ b/linguistic/source/spelldta.cxx @@ -199,21 +199,6 @@ SpellAlternatives::SpellAlternatives() SpellAlternatives::SpellAlternatives( - const OUString &rWord, sal_Int16 nLang, - sal_Int16 nFailureType, const OUString &rRplcWord ) : - aAlt ( Sequence< OUString >(1) ), - aWord (rWord), - nType (nFailureType), - nLanguage (nLang) -{ - if (rRplcWord.getLength()) - aAlt.getArray()[ 0 ] = rRplcWord; - else - aAlt.realloc( 0 ); -} - - -SpellAlternatives::SpellAlternatives( const OUString &rWord, sal_Int16 nLang, sal_Int16 nFailureType, const Sequence< OUString > &rAlternatives ) : aAlt (rAlternatives), diff --git a/unusedcode.easy b/unusedcode.easy index 51939c13df3e..b7c0321c690a 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -2499,7 +2499,6 @@ libwpg::WPGDashArray::at(unsigned int) const libwpg::WPGraphics::generateSVG(unsigned char const*, unsigned long, WPXString&, libwpg::WPGFileFormat) libwpg::WPGraphics::parse(unsigned char const*, unsigned long, libwpg::WPGPaintInterface*, libwpg::WPGFileFormat) linguistic::IsLower(String const&, unsigned short, unsigned short, short) -linguistic::SpellAlternatives::SpellAlternatives(rtl::OUString const&, short, short, rtl::OUString const&) linguistic::ToLower(unsigned short, short) linguistic::ToTitle(String const&, short) linguistic::ToUpper(String const&, short) |