diff options
Diffstat (limited to 'xmlsecurity/qa')
-rw-r--r-- | xmlsecurity/qa/unit/signing/signing.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xmlsecurity/qa/unit/signing/signing.cxx b/xmlsecurity/qa/unit/signing/signing.cxx index 19d233063ad7..e316a4dc7ef9 100644 --- a/xmlsecurity/qa/unit/signing/signing.cxx +++ b/xmlsecurity/qa/unit/signing/signing.cxx @@ -493,13 +493,11 @@ CPPUNIT_TEST_FIXTURE(SigningTest, testOOXMLRemoveAll) // Make sure that the signature count is zero and the whole signature storage is removed completely. CPPUNIT_ASSERT_EQUAL(static_cast<std::size_t>(0), rInformations.size()); - uno::Reference<container::XNameAccess> xNameAccess(xStorage, uno::UNO_QUERY); - CPPUNIT_ASSERT(!xNameAccess->hasByName("_xmlsignatures")); + CPPUNIT_ASSERT(!xStorage->hasByName("_xmlsignatures")); // And that content types no longer contains signature types. - uno::Reference<io::XStream> xStream( - xStorage->openStreamElement("[Content_Types].xml", embed::ElementModes::READWRITE), - uno::UNO_QUERY); + uno::Reference<io::XStream> xStream + = xStorage->openStreamElement("[Content_Types].xml", embed::ElementModes::READWRITE); uno::Reference<io::XInputStream> xInputStream = xStream->getInputStream(); uno::Sequence<uno::Sequence<beans::StringPair>> aContentTypeInfo = comphelper::OFOPXMLHelper::ReadContentTypeSequence(xInputStream, mxComponentContext); |