summaryrefslogtreecommitdiff
path: root/xmlsecurity/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 18:27:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-21 08:51:13 +0200
commit3c6b2b734a00f4844e0bfd5707d14fd4a3d279b0 (patch)
tree40f521e74e3091e2c1115d0961a0308e509bab8c /xmlsecurity/qa
parent3284309f19bc76f1778988c5314a795a95620e71 (diff)
loplugin:referencecasting in xmlsecurity
Change-Id: Ic3daba9e6e94516ea4d80f25f73e9e46a50edb5c Reviewed-on: https://gerrit.libreoffice.org/76035 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/qa')
-rw-r--r--xmlsecurity/qa/unit/signing/signing.cxx8
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);