diff options
Diffstat (limited to 'cui/source/tabpages/autocdlg.cxx')
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 393f9f79d872..ba3998445cf5 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -1180,8 +1180,8 @@ IMPL_LINK(OfaAutocorrReplacePage, ModifyHdl, weld::Entry&, rEdt, void) } } - const OUString& rShortTxt = m_xShortED->get_text(); - bool bEnableNew = !rShortTxt.isEmpty() && + const OUString aShortTxt = m_xShortED->get_text(); + bool bEnableNew = !aShortTxt.isEmpty() && ( !rRepString.isEmpty() || ( bHasSelectionText && bSWriter )) && ( !bFirstSelIterSet || rRepString != @@ -1190,7 +1190,7 @@ IMPL_LINK(OfaAutocorrReplacePage, ModifyHdl, weld::Entry&, rEdt, void) { for (auto const& elem : aFormatText) { - if(elem == rShortTxt) + if(elem == aShortTxt) { bEnableNew = false; break; @@ -1529,7 +1529,7 @@ IMPL_LINK(OfaAutocorrExceptPage, SelectHdl, weld::TreeView&, rBox, void) IMPL_LINK(OfaAutocorrExceptPage, ModifyHdl, weld::Entry&, rEdt, void) { - const OUString& sEntry = rEdt.get_text(); + const OUString sEntry = rEdt.get_text(); bool bEntryLen = !sEntry.isEmpty(); if (&rEdt == m_xAbbrevED.get()) { |