From 73cc9fc42cfa524a9965f58092f3a004de3a6b87 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 8 Apr 2013 07:30:44 +0200 Subject: Fix variable reassigned before the old value has been used Change-Id: Ifd90fe801371a7f4cbeefe49dbfbe192c3040ebd --- cui/source/options/optlingu.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cui/source') diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 8d5bbb198cc9..2ef6af4925ba 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1147,9 +1147,8 @@ SvxLinguTabPage::SvxLinguTabPage( Window* pParent, } const SfxSpellCheckItem* pItem = 0; - SfxItemState eItemState = SFX_ITEM_UNKNOWN; - eItemState = rSet.GetItemState( GetWhich( SID_ATTR_SPELL ), + SfxItemState eItemState = rSet.GetItemState( GetWhich( SID_ATTR_SPELL ), sal_False, (const SfxPoolItem**)&pItem ); // is it about a default-item? -- cgit