Surround recently added code that breaks on COWASM with ifdef
After 7a6324ea0d I started getting UNO
exceptions with the message "component context fails to supply service
com.sun.star.xml.crypto.SEInitializer of type
com.sun.star.xml.crypto.XSEInitializer".
It is likely that it breaks in the iOS and Android apps, too, so
bypass for those, too.
Change-Id: Id08afbf6bea071c8b0b6564342716e0b064cb712
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146071
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
@@ -3404,6 +3404,7 @@ static void doc_iniUnoCommands ()
|
||||
return;
|
||||
}
|
||||
|
||||
#if !defined IOS && !defined ANDROID && !defined __EMSCRIPTEN__
|
||||
uno::Reference<xml::crypto::XSEInitializer> xSEInitializer = xml::crypto::SEInitializer::create(xContext);
|
||||
if (!xSEInitializer.is())
|
||||
{
|
||||
@@ -3417,6 +3418,7 @@ static void doc_iniUnoCommands ()
|
||||
{
|
||||
SAL_WARN("lok", "iniUnoCommands: failed to create security context");
|
||||
}
|
||||
#endif
|
||||
|
||||
SfxSlotPool& rSlotPool = SfxSlotPool::GetSlotPool(pViewFrame);
|
||||
uno::Reference<util::XURLTransformer> xParser(util::URLTransformer::create(xContext));
|
||||
|
||||
Reference in New Issue
Block a user