From 3c6b2b734a00f4844e0bfd5707d14fd4a3d279b0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 20 Jul 2019 18:27:48 +0200 Subject: loplugin:referencecasting in xmlsecurity Change-Id: Ic3daba9e6e94516ea4d80f25f73e9e46a50edb5c Reviewed-on: https://gerrit.libreoffice.org/76035 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlsecurity/qa/unit/signing/signing.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'xmlsecurity/qa') 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(0), rInformations.size()); - uno::Reference 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 xStream( - xStorage->openStreamElement("[Content_Types].xml", embed::ElementModes::READWRITE), - uno::UNO_QUERY); + uno::Reference xStream + = xStorage->openStreamElement("[Content_Types].xml", embed::ElementModes::READWRITE); uno::Reference xInputStream = xStream->getInputStream(); uno::Sequence> aContentTypeInfo = comphelper::OFOPXMLHelper::ReadContentTypeSequence(xInputStream, mxComponentContext); -- cgit