Kaydet (Commit) 485d29d0 authored tarafından Matteo Casalin's avatar Matteo Casalin

Remove temporaries and constify

Change-Id: I632a8b58ecff17fbc172335cb1186c822edc2827
üst 6483ed12
......@@ -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();
......
......@@ -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;
......
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment