diff options
-rw-r--r-- | sw/source/uibase/shells/textglos.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/sidebar/PageMarginControl.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/table/chartins.cxx | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/textglos.cxx b/sw/source/uibase/shells/textglos.cxx index 04f0417042db..372416e49cbd 100644 --- a/sw/source/uibase/shells/textglos.cxx +++ b/sw/source/uibase/shells/textglos.cxx @@ -33,7 +33,7 @@ void SwTextShell::ExecGlossary(SfxRequest &rReq) { - sal_uInt16 nSlot = rReq.GetSlot(); + const sal_uInt16 nSlot = rReq.GetSlot(); ::GetGlossaries()->UpdateGlosPath(!rReq.IsAPI() || FN_GLOSSARY_DLG == nSlot ); SwGlossaryHdl* pGlosHdl = GetView().GetGlosHdl(); diff --git a/sw/source/uibase/sidebar/PageMarginControl.cxx b/sw/source/uibase/sidebar/PageMarginControl.cxx index 6a0f181d0ce5..52a16a24d146 100644 --- a/sw/source/uibase/sidebar/PageMarginControl.cxx +++ b/sw/source/uibase/sidebar/PageMarginControl.cxx @@ -308,10 +308,9 @@ IMPL_LINK(PageMarginControl, ImplMarginHdl, void *, pControl) { if ( pControl == mpMarginValueSet ) { - const sal_uInt16 iPos = mpMarginValueSet->GetSelectItemId(); bool bMirrored = false; bool bApplyNewPageMargins = true; - switch ( iPos ) + switch ( mpMarginValueSet->GetSelectItemId() ) { case 1: mnPageLeftMargin = SWPAGE_NARROW_VALUE; diff --git a/sw/source/uibase/table/chartins.cxx b/sw/source/uibase/table/chartins.cxx index 9750d2e178f7..7116378d4092 100644 --- a/sw/source/uibase/table/chartins.cxx +++ b/sw/source/uibase/table/chartins.cxx @@ -247,8 +247,7 @@ void SwInsertChart(Window* pParent, SfxBindings* pBindings ) void AutoEdit::KeyInput( const KeyEvent& rEvt ) { - sal_uInt16 nCode = rEvt.GetKeyCode().GetCode(); - if( nCode != KEY_SPACE ) + if( rEvt.GetKeyCode().GetCode() != KEY_SPACE ) Edit::KeyInput( rEvt ); } |