[Libreoffice-commits] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Mar 15 02:32:43 PDT 2011


 sw/source/ui/shells/txtattr.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit f988fe560b7358eafa525be7df7997800847c2ca
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 15 09:17:41 2011 +0000

    WaE: variables set but unused

diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx
index 5952ede..92af610 100644
--- a/sw/source/ui/shells/txtattr.cxx
+++ b/sw/source/ui/shells/txtattr.cxx
@@ -355,11 +355,6 @@ SET_LINESPACE:
         case SID_ATTR_PARA_LEFT_TO_RIGHT :
         case SID_ATTR_PARA_RIGHT_TO_LEFT :
         {
-            BOOL bSet = TRUE;
-            int eState = pArgs ? pArgs->GetItemState(nSlot) : SFX_ITEM_DISABLED;
-            if (pArgs && SFX_ITEM_SET == eState)
-                bSet = ((const SfxBoolItem&)pArgs->Get(nSlot)).GetValue();
-
             SfxItemSet aAdjustSet( GetPool(),
                     RES_PARATR_ADJUST, RES_PARATR_ADJUST );
             GetShell().GetCurAttr(aAdjustSet);


More information about the Libreoffice-commits mailing list