cui/source/dialogs/SpellDialog.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ae73f0f05aa32f2afc737ab9d4a3e028f7647363
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Nov 12 10:17:52 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Nov 12 21:33:15 2021 +0100

    call GetGetSpecialCharsFunction just once
    
    Change-Id: Ia2ea7b234216408f3209139fa57be8d6a0794ed9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125091
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

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());

Reply via email to