diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-08-18 16:55:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-20 07:56:27 +0200 |
commit | 1e3bd9bd15550033ae76012014d631b104ff2008 (patch) | |
tree | 8c54dd1e46c778ec1929271f2fb4c99ef7c84af4 /editeng | |
parent | 28e4240f81ccc1804ecf4b776290b3553f8d1c61 (diff) |
drop unused SfxSpellCheckItem
last getter went with
commit 215207f480258b37864a88e1b831055e148adf65
Date: Thu Mar 6 16:42:24 2014 +0000
coverity#708784 Unused pointer value
don't put the item in any item sets anymore.
delete SID_ATTR_SPELL and adjust SfxItemSet ranges.
narrow ranges in OfaTreeOptionsDialog::CreateItemSet to actually
used items.
Change-Id: Ia5cc91fc62a0fccf87b2fd380e6bb2bef1f6f3e7
Reviewed-on: https://gerrit.libreoffice.org/41335
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/optitems.cxx | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/editeng/source/items/optitems.cxx b/editeng/source/items/optitems.cxx index 913bb679103e..fea69e09426b 100644 --- a/editeng/source/items/optitems.cxx +++ b/editeng/source/items/optitems.cxx @@ -17,62 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <tools/stream.hxx> -#include <com/sun/star/linguistic2/XSpellChecker1.hpp> - #include <editeng/optitems.hxx> #include <editeng/eerdll.hxx> #include <editeng/editrids.hrc> -using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::linguistic2; - -// class SfxSpellCheckItem ----------------------------------------------- - -SfxSpellCheckItem::SfxSpellCheckItem -( - Reference< XSpellChecker1 > const &xChecker, - sal_uInt16 _nWhich -) : - - SfxPoolItem( _nWhich ) -{ - xSpellCheck = xChecker; -} - - -SfxSpellCheckItem::SfxSpellCheckItem( const SfxSpellCheckItem& rItem ) : - - SfxPoolItem( rItem ), - xSpellCheck( rItem.GetXSpellChecker() ) -{ -} - - -bool SfxSpellCheckItem::GetPresentation -( - SfxItemPresentation , - MapUnit , - MapUnit , - OUString& , - const IntlWrapper& -) const -{ - return true; -} - - -SfxPoolItem* SfxSpellCheckItem::Clone( SfxItemPool* ) const -{ - return new SfxSpellCheckItem( *this ); -} - - -bool SfxSpellCheckItem::operator==( const SfxPoolItem& rItem ) const -{ - assert(SfxPoolItem::operator==(rItem)); - return ( xSpellCheck == static_cast<const SfxSpellCheckItem&>( rItem ).GetXSpellChecker() ); -} // class SfxHyphenRegionItem ----------------------------------------------- |