summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-12 10:17:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-11-12 21:33:15 +0100
commitae73f0f05aa32f2afc737ab9d4a3e028f7647363 (patch)
tree8aa2e1859386e263d8b1b4cdc8cc477f810a591c /cui
parent3509a42a042db1628acc59dfc13298639745f62e (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')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx4
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());