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>
This commit is contained in:
parent
8d87164bec
commit
8369765ec5
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue