summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2023-01-24 15:43:15 +0200
committerTor Lillqvist <tml@collabora.com>2023-01-24 15:17:30 +0000
commitd514097753a5971f2d5616319238a1a9eb6d8f9a (patch)
tree1197a72475856426b3ae80eef15a0e5cd84f7c39 /desktop
parente37a4598bbfcc4359fb13e362888b5fe29a997ef (diff)
Surround recently added code that breaks on COWASM with ifdef
After 7a6324ea0d81bbe2bba09f8a7f5230342a4f4e85 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>
Diffstat (limited to 'desktop')
-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 8e98e675bb79..97d74bc4682d 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -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));