From 9cc2b07ff5e610258aad2ec2b72e6b1ea15fd5e2 Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 17 Feb 2021 18:23:54 +0200 Subject: loplugin:referencecasting in xmlsecurity Change-Id: I038c4f85250b4d8d8fef605fd90f6fa53bbffe9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111079 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlsecurity/source/xmlsec/nss/ciphercontext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlsecurity/source/xmlsec/nss/ciphercontext.cxx') diff --git a/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx b/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx index 104414f815de..c36de660df4e 100644 --- a/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx +++ b/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx @@ -52,7 +52,7 @@ uno::Reference< xml::crypto::XCipherContext > OCipherContext::Create( CK_MECHANI xResult->m_bPadding = bW3CPadding || ( PK11_GetPadMechanism( nNSSCipherID ) == nNSSCipherID ); xResult->m_nBlockSize = PK11_GetBlockSize( nNSSCipherID, xResult->m_pSecParam ); if ( xResult->m_nBlockSize <= SAL_MAX_INT8 ) - return xResult.get(); + return xResult; } } } -- cgit