summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-17 11:58:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-17 19:45:21 +0100
commit8369765ec5be151082a6e31c16e2ab2b0df13f5c (patch)
tree61de0c13363d3fc3809ab01202a7a137bea874a3
parent8d87164becccc230e1e0ad5ac51bf645744165a2 (diff)
cool#6893 pre-init dictionary list
so the forked processes don't need to Change-Id: Id37688ac88c14679e216cca744563ee75c7c4736 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159561 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 3ee743d4aada..dcdbf35b7d03 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -125,6 +125,7 @@
#include <com/sun/star/xml/crypto/XCertificateCreator.hpp>
#include <com/sun/star/security/XCertificate.hpp>
+#include <com/sun/star/linguistic2/DictionaryList.hpp>
#include <com/sun/star/linguistic2/LanguageGuessing.hpp>
#include <com/sun/star/linguistic2/LinguServiceManager.hpp>
#include <com/sun/star/linguistic2/XSpellChecker.hpp>
@@ -7423,6 +7424,7 @@ static void preloadData()
setLanguageToolConfig();
// preload all available dictionaries
+ linguistic2::DictionaryList::create(comphelper::getProcessComponentContext());
css::uno::Reference<css::linguistic2::XLinguServiceManager> xLngSvcMgr =
css::linguistic2::LinguServiceManager::create(comphelper::getProcessComponentContext());
css::uno::Reference<linguistic2::XSpellChecker> xSpellChecker(xLngSvcMgr->getSpellChecker());