summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-27 21:58:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-28 09:20:32 +0100
commit865ef9c4488ed02941526e5f6d1e17a76c73bbbe (patch)
treedacf2405dceaa150a108715113cf3f54c09f6551 /linguistic
parent7e276c3e0fa333348fa82e385feba3f5e61acdd0 (diff)
unused ctor, and use boost::noncopyable
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/inc/linguistic/spelldta.hxx15
-rw-r--r--linguistic/source/spelldta.cxx15
2 files changed, 6 insertions, 24 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),