summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-07-25 13:17:13 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-07-26 14:25:31 +0200
commit485d29d0716213a20198bbf2a5e5084505ea6c79 (patch)
tree6d9363654b4b82959e08dd63b4580961c909bc98 /sw
parent6483ed12cea9e268834fe4343007caafdc7f0d0c (diff)
Remove temporaries and constify
Change-Id: I632a8b58ecff17fbc172335cb1186c822edc2827
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/textglos.cxx2
-rw-r--r--sw/source/uibase/sidebar/PageMarginControl.cxx3
-rw-r--r--sw/source/uibase/table/chartins.cxx3
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 );
}