From 215207f480258b37864a88e1b831055e148adf65 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 6 Mar 2014 16:42:24 +0000 Subject: coverity#708784 Unused pointer value as far as I can see the whole block is useless Change-Id: I26f2a033090e2e855a344a038246142995fb5727 --- cui/source/options/optlingu.cxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'cui') diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index e9af92199590..93395eee1fec 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1150,21 +1150,8 @@ SvxLinguTabPage::SvxLinguTabPage( Window* pParent, const SfxItemSet& rSet ) : m_pLinguDicsEditPB->Disable(); m_pLinguDicsDelPB->Disable(); } - - const SfxSpellCheckItem* pItem = 0; - - SfxItemState eItemState = rSet.GetItemState( GetWhich( SID_ATTR_SPELL ), - false, (const SfxPoolItem**)&pItem ); - - // is it about a default-item? - if ( eItemState == SFX_ITEM_DEFAULT ) - pItem = (const SfxSpellCheckItem*)&(rSet.Get( GetWhich( SID_ATTR_SPELL ) ) ); - else if ( eItemState == SFX_ITEM_DONTCARE ) - pItem = NULL; } - - SvxLinguTabPage::~SvxLinguTabPage() { if (pLinguData) -- cgit