diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-12 15:12:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-12 16:06:24 +0100 |
commit | 65caa58206bb64c6fa6e482dbd847af1b3c2c1b0 (patch) | |
tree | 66a2cd63fb9f2419f34becabf20b4fcf78033fdb /starmath/source | |
parent | 7a7ba9cbee91485a9254949d1594352b3629c070 (diff) |
loplugin:reftotemp in sot..svl
Change-Id: I4c15b3443f411e81eaf7ea0e8c98e8728ab4ca02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176482
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/dialog.cxx | 6 | ||||
-rw-r--r-- | starmath/source/mathml/mathmlimport.cxx | 6 | ||||
-rw-r--r-- | starmath/source/view.cxx | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 86bd8f836bb5..7bcaaca98c89 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -222,7 +222,7 @@ OUString SmPrintOptionsTabPage::GetAllStrings() for (const auto& label : labels) { - if (const auto& pString = m_xBuilder->weld_label(label)) + if (const auto pString = m_xBuilder->weld_label(label)) sAllStrings += pString->get_label() + " "; } @@ -231,7 +231,7 @@ OUString SmPrintOptionsTabPage::GetAllStrings() for (const auto& check : checkButton) { - if (const auto& pString = m_xBuilder->weld_check_button(check)) + if (const auto pString = m_xBuilder->weld_check_button(check)) sAllStrings += pString->get_label() + " "; } @@ -239,7 +239,7 @@ OUString SmPrintOptionsTabPage::GetAllStrings() for (const auto& radio : radioButton) { - if (const auto& pString = m_xBuilder->weld_radio_button(radio)) + if (const auto pString = m_xBuilder->weld_radio_button(radio)) sAllStrings += pString->get_label() + " "; } diff --git a/starmath/source/mathml/mathmlimport.cxx b/starmath/source/mathml/mathmlimport.cxx index 0ac32397e099..d3ec8f949977 100644 --- a/starmath/source/mathml/mathmlimport.cxx +++ b/starmath/source/mathml/mathmlimport.cxx @@ -497,9 +497,9 @@ void SmXMLImportContext::characters(const OUString& rChars) 1 or more whitespace characters is replaced with one blank character). */ //collapsing not done yet! - const OUString& rChars2 = rChars.trim(); - if (!rChars2.isEmpty()) - TCharacters(rChars2 /*.collapse()*/); + const OUString aChars2 = rChars.trim(); + if (!aChars2.isEmpty()) + TCharacters(aChars2 /*.collapse()*/); } namespace diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 70ed1dbb8cb6..cf56852a69aa 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -2229,12 +2229,12 @@ std::optional<OString> SmViewShell::getLOKPayload(int nType, int nViewId) const void SmViewShell::SendCaretToLOK() const { const int nViewId = sal_Int32(GetViewShellId()); - if (const auto& payload = getLOKPayload(LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR, nViewId)) + if (const auto payload = getLOKPayload(LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR, nViewId)) { libreOfficeKitViewCallbackWithViewId(LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR, *payload, nViewId); } - if (const auto& payload = getLOKPayload(LOK_CALLBACK_TEXT_SELECTION, nViewId)) + if (const auto payload = getLOKPayload(LOK_CALLBACK_TEXT_SELECTION, nViewId)) { libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION, *payload); } |