[Libreoffice-commits] core.git: cui/source

Julien Nabet serval2412 at yahoo.fr
Sun Apr 7 22:34:09 PDT 2013


 cui/source/options/optlingu.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 73cc9fc42cfa524a9965f58092f3a004de3a6b87
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Apr 8 07:30:44 2013 +0200

    Fix variable reassigned before the old value has been used
    
    Change-Id: Ifd90fe801371a7f4cbeefe49dbfbe192c3040ebd

diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 8d5bbb1..2ef6af49 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?


More information about the Libreoffice-commits mailing list