diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-12 10:17:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-12 21:33:15 +0100 |
commit | ae73f0f05aa32f2afc737ab9d4a3e028f7647363 (patch) | |
tree | 8aa2e1859386e263d8b1b4cdc8cc477f810a591c /cui/source | |
parent | 3509a42a042db1628acc59dfc13298639745f62e (diff) |
call GetGetSpecialCharsFunction just once
Change-Id: Ia2ea7b234216408f3209139fa57be8d6a0794ed9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125091
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 804bbbd50644..dae7b92c9155 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -1527,9 +1527,9 @@ IMPL_LINK(SentenceEditWindow_Impl, ToolbarHdl, const OString&, rCurItemId, void) } else if (rCurItemId == "insert") { - if (vcl::GetGetSpecialCharsFunction()) + if (auto pImplFncGetSpecialChars = vcl::GetGetSpecialCharsFunction()) { - OUString aChars = vcl::GetGetSpecialCharsFunction()(GetDrawingArea(), m_xEditEngine->GetStandardFont(0)); + OUString aChars = pImplFncGetSpecialChars(GetDrawingArea(), m_xEditEngine->GetStandardFont(0)); if (!aChars.isEmpty()) { ESelection aCurrentSelection(m_xEditView->GetSelection()); |