summaryrefslogtreecommitdiff
path: root/xmlsecurity/qa/unit/signing/signing.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/qa/unit/signing/signing.cxx')
-rw-r--r--xmlsecurity/qa/unit/signing/signing.cxx30
1 files changed, 6 insertions, 24 deletions
diff --git a/xmlsecurity/qa/unit/signing/signing.cxx b/xmlsecurity/qa/unit/signing/signing.cxx
index 6c9bf22e5d97..a3142a015000 100644
--- a/xmlsecurity/qa/unit/signing/signing.cxx
+++ b/xmlsecurity/qa/unit/signing/signing.cxx
@@ -872,15 +872,9 @@ void SigningTest::testPreserveMacroTemplateSignature12()
ODFVER_012_TEXT);
// create new document from template
- // we can't use createDoc / MacrosTest::loadFromDesktop, because ALWAYS_EXECUTE_NO_WARN
- // won't verify the signature for templates, so the resulting document won't be able to
- // preserve the templates signature.
mxComponent->dispose();
- mxComponent = mxDesktop->loadComponentFromURL(
- aURL, "_default", 0,
- comphelper::InitPropertySequence(
- { { "MacroExecutionMode",
- uno::Any(document::MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN) } }));
+ mxComponent = mxDesktop->loadComponentFromURL(aURL, "_default", 0,
+ uno::Sequence<beans::PropertyValue>(0));
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(sLoadMessage, RTL_TEXTENCODING_UTF8).getStr(),
mxComponent.is());
@@ -982,15 +976,9 @@ void SigningTest::testDropMacroTemplateSignature()
SignatureState::NOTVALIDATED, OUString());
// create new document from template
- // we can't use createDoc / MacrosTest::loadFromDesktop, because ALWAYS_EXECUTE_NO_WARN
- // won't verify the signature for templates, so the resulting document won't be able to
- // preserve the templates signature.
mxComponent->dispose();
- mxComponent = mxDesktop->loadComponentFromURL(
- aURL, "_default", 0,
- comphelper::InitPropertySequence(
- { { "MacroExecutionMode",
- uno::Any(document::MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN) } }));
+ mxComponent = mxDesktop->loadComponentFromURL(aURL, "_default", 0,
+ uno::Sequence<beans::PropertyValue>(0));
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(sLoadMessage, RTL_TEXTENCODING_UTF8).getStr(),
mxComponent.is());
@@ -1112,15 +1100,9 @@ void SigningTest::testPreserveMacroTemplateSignature10()
SignatureState::NOTVALIDATED, OUString());
// create new document from template
- // we can't use createDoc / MacrosTest::loadFromDesktop, because ALWAYS_EXECUTE_NO_WARN
- // won't verify the signature for templates, so the resulting document won't be able to
- // preserve the templates signature.
mxComponent->dispose();
- mxComponent = mxDesktop->loadComponentFromURL(
- aURL, "_default", 0,
- comphelper::InitPropertySequence(
- { { "MacroExecutionMode",
- uno::Any(document::MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN) } }));
+ mxComponent = mxDesktop->loadComponentFromURL(aURL, "_default", 0,
+ uno::Sequence<beans::PropertyValue>(0));
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(sLoadMessage, RTL_TEXTENCODING_UTF8).getStr(),
mxComponent.is());