summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-27 11:12:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-27 13:06:59 +0200
commite5ece062058f7772f8414d47d07bb8af6e8e5c2a (patch)
tree97ab9340c5e29f5445279a9585b4abe42396b14d /sw/source/uibase/shells
parent2d5090419e0113f5b411ee84bfc55926a19da411 (diff)
loplugin:oncevar in sw
Change-Id: Ia96172489eec09607113d388a5b683bb6e0d2dec Reviewed-on: https://gerrit.libreoffice.org/39290 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/shells')
-rw-r--r--sw/source/uibase/shells/textfld.cxx3
-rw-r--r--sw/source/uibase/shells/textsh1.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx
index c8a963a0e7a9..40fbf5a0b5dc 100644
--- a/sw/source/uibase/shells/textfld.cxx
+++ b/sw/source/uibase/shells/textfld.cxx
@@ -256,8 +256,7 @@ void SwTextShell::ExecField(SfxRequest &rReq)
FN_PARAM_FIELD_FORMAT, false, &pItem ))
nFormat = static_cast<const SfxUInt32Item *>(pItem)->GetValue();
OSL_FAIL("Command is not yet used");
- sal_Unicode cSeparator = ' ';
- SwInsertField_Data aData(nType, 0, aPar1, aPar2, nFormat, GetShellPtr(), cSeparator );
+ SwInsertField_Data aData(nType, 0, aPar1, aPar2, nFormat, GetShellPtr(), ' '/*separator*/ );
bRes = aFieldMgr.InsertField(aData);
}
rReq.SetReturnValue(SfxBoolItem( nSlot, bRes ));
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index d02048d49e7e..a5a295c820d6 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -706,8 +706,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
case FN_AUTO_CORRECT:
{
// At first set to blank as default.
- sal_Unicode cChar = ' ';
- rWrtSh.AutoCorrect( *SvxAutoCorrCfg::Get().GetAutoCorrect(), cChar );
+ rWrtSh.AutoCorrect( *SvxAutoCorrCfg::Get().GetAutoCorrect(), ' ' );
rReq.Done();
}
break;