summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/optdict.cxx7
-rw-r--r--cui/source/options/optgdlg.cxx4
-rw-r--r--cui/source/options/optpath.cxx2
3 files changed, 6 insertions, 7 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index 2a3b089c8762..f383280e5bc9 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -600,7 +600,6 @@ bool SvxEditDictionaryDialog::NewDelHdl(const weld::Widget* pBtn)
{
int nEntry = m_pWordsLB->get_selected_index();
OUString aNewWord(fixSpace(m_xWordED->get_text()));
- OUString sEntry(aNewWord);
OUString aReplaceStr(fixSpace(m_xReplaceED->get_text()));
DictionaryError nAddRes = DictionaryError::UNKNOWN;
@@ -632,21 +631,21 @@ bool SvxEditDictionaryDialog::NewDelHdl(const weld::Widget* pBtn)
if (DictionaryError::NONE != nAddRes)
SvxDicError(m_xDialog.get(), nAddRes);
- if (DictionaryError::NONE == nAddRes && !sEntry.isEmpty())
+ if (DictionaryError::NONE == nAddRes && !aNewWord.isEmpty())
{
// insert new entry in list-box etc...
m_pWordsLB->freeze();
if (nEntry != -1) // entry selected in m_pWordsLB ie action = modify entry
{
- m_pWordsLB->set_text(nEntry, sEntry);
+ m_pWordsLB->set_text(nEntry, aNewWord);
if (!aReplaceStr.isEmpty())
m_pWordsLB->set_text(nEntry, aReplaceStr, 1);
}
else
{
nEntry = GetLBInsertPos(aNewWord);
- m_pWordsLB->insert_text(nEntry, sEntry);
+ m_pWordsLB->insert_text(nEntry, aNewWord);
if(!aReplaceStr.isEmpty())
m_pWordsLB->set_text(nEntry, aReplaceStr, 1);
}
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 6cfc67c9496b..6ca5847d22cf 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -144,7 +144,7 @@ bool lcl_HasSystemFilePicker()
try
{
- OUString aFileService = impl_SystemFileOpenServiceName();
+ const OUString& aFileService = impl_SystemFileOpenServiceName();
Reference< XEnumeration > xEnum = xEnumAccess->createContentEnumeration( aFileService );
if ( xEnum.is() && xEnum->hasMoreElements() )
bRet = true;
@@ -1134,7 +1134,7 @@ static Sequence< OUString > seqInstalledLanguages;
static OUString lcl_getDatePatternsConfigString( const LocaleDataWrapper& rLocaleWrapper )
{
- Sequence< OUString > aDateAcceptancePatterns = rLocaleWrapper.getDateAcceptancePatterns();
+ const Sequence< OUString >& aDateAcceptancePatterns = rLocaleWrapper.getDateAcceptancePatterns();
sal_Int32 nPatterns = aDateAcceptancePatterns.getLength();
OUStringBuffer aBuf( nPatterns * 6 ); // 6 := length of Y-M-D;
SAL_WARN_IF( !nPatterns, "cui.options", "No date acceptance pattern");
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 5eb31909fc22..d11aab9e7eaf 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -572,7 +572,7 @@ IMPL_LINK_NOARG(SvxPathTabPage, PathHdl_Impl, weld::Button&, void)
try
{
sfx2::FileDialogHelper aHelper(ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE, GetFrameWeld());
- uno::Reference<ui::dialogs::XFilePicker3> xFilePicker = aHelper.GetFilePicker();
+ const uno::Reference<ui::dialogs::XFilePicker3>& xFilePicker = aHelper.GetFilePicker();
xFilePicker->appendFilter(OUString(), u"*.xml"_ustr);
if (xFilePicker->execute() == ui::dialogs::ExecutableDialogResults::OK)
{