Kaydet (Commit) 54c401d7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticmethods (clang-cl)

Change-Id: Id97600a7d29fbe938d67ea074ca12dd665a29cc3
üst b2d800ed
...@@ -177,7 +177,7 @@ class SecurityEnvironment_MSCryptImpl : public ::cppu::WeakImplHelper< ...@@ -177,7 +177,7 @@ class SecurityEnvironment_MSCryptImpl : public ::cppu::WeakImplHelper<
xmlSecKeysMngrPtr createKeysManager() throw( css::uno::Exception , css::uno::RuntimeException ) ; xmlSecKeysMngrPtr createKeysManager() throw( css::uno::Exception , css::uno::RuntimeException ) ;
void destroyKeysManager(xmlSecKeysMngrPtr pKeysMngr) throw( css::uno::Exception , css::uno::RuntimeException ) ; static void destroyKeysManager(xmlSecKeysMngrPtr pKeysMngr) throw( css::uno::Exception , css::uno::RuntimeException ) ;
} ; } ;
#endif // INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_SECURITYENVIRONMENT_MSCRYPTIMPL_HXX #endif // INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_SECURITYENVIRONMENT_MSCRYPTIMPL_HXX
......
...@@ -157,7 +157,7 @@ SAL_CALL XMLEncryption_MSCryptImpl::encrypt( ...@@ -157,7 +157,7 @@ SAL_CALL XMLEncryption_MSCryptImpl::encrypt(
pEncCtx = xmlSecEncCtxCreate( pMngr ) ; pEncCtx = xmlSecEncCtxCreate( pMngr ) ;
if( pEncCtx == nullptr ) if( pEncCtx == nullptr )
{ {
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
//throw XMLEncryptionException() ; //throw XMLEncryptionException() ;
clearErrorRecorder(); clearErrorRecorder();
return aTemplate; return aTemplate;
...@@ -167,13 +167,13 @@ SAL_CALL XMLEncryption_MSCryptImpl::encrypt( ...@@ -167,13 +167,13 @@ SAL_CALL XMLEncryption_MSCryptImpl::encrypt(
if( xmlSecEncCtxXmlEncrypt( pEncCtx , pEncryptedData , pContent ) < 0 ) { if( xmlSecEncCtxXmlEncrypt( pEncCtx , pEncryptedData , pContent ) < 0 ) {
aTemplate->setStatus(css::xml::crypto::SecurityOperationStatus_UNKNOWN); aTemplate->setStatus(css::xml::crypto::SecurityOperationStatus_UNKNOWN);
xmlSecEncCtxDestroy( pEncCtx ) ; xmlSecEncCtxDestroy( pEncCtx ) ;
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
clearErrorRecorder(); clearErrorRecorder();
return aTemplate; return aTemplate;
} }
aTemplate->setStatus(css::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED); aTemplate->setStatus(css::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED);
xmlSecEncCtxDestroy( pEncCtx ) ; xmlSecEncCtxDestroy( pEncCtx ) ;
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
//get the new EncryptedData element //get the new EncryptedData element
if (isParentRef) if (isParentRef)
...@@ -263,7 +263,7 @@ XMLEncryption_MSCryptImpl::decrypt( ...@@ -263,7 +263,7 @@ XMLEncryption_MSCryptImpl::decrypt(
pEncCtx = xmlSecEncCtxCreate( pMngr ) ; pEncCtx = xmlSecEncCtxCreate( pMngr ) ;
if( pEncCtx == nullptr ) if( pEncCtx == nullptr )
{ {
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
//throw XMLEncryptionException() ; //throw XMLEncryptionException() ;
clearErrorRecorder(); clearErrorRecorder();
return aTemplate; return aTemplate;
...@@ -273,7 +273,7 @@ XMLEncryption_MSCryptImpl::decrypt( ...@@ -273,7 +273,7 @@ XMLEncryption_MSCryptImpl::decrypt(
if( xmlSecEncCtxDecrypt( pEncCtx , pEncryptedData ) < 0 || pEncCtx->result == nullptr ) { if( xmlSecEncCtxDecrypt( pEncCtx , pEncryptedData ) < 0 || pEncCtx->result == nullptr ) {
aTemplate->setStatus(css::xml::crypto::SecurityOperationStatus_UNKNOWN); aTemplate->setStatus(css::xml::crypto::SecurityOperationStatus_UNKNOWN);
xmlSecEncCtxDestroy( pEncCtx ) ; xmlSecEncCtxDestroy( pEncCtx ) ;
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
//throw XMLEncryptionException() ; //throw XMLEncryptionException() ;
clearErrorRecorder(); clearErrorRecorder();
...@@ -306,7 +306,7 @@ XMLEncryption_MSCryptImpl::decrypt( ...@@ -306,7 +306,7 @@ XMLEncryption_MSCryptImpl::decrypt(
//Destroy the encryption context //Destroy the encryption context
xmlSecEncCtxDestroy( pEncCtx ) ; xmlSecEncCtxDestroy( pEncCtx ) ;
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
//get the decrypted element //get the decrypted element
XMLElementWrapper_XmlSecImpl * ret = new XMLElementWrapper_XmlSecImpl(isParentRef? XMLElementWrapper_XmlSecImpl * ret = new XMLElementWrapper_XmlSecImpl(isParentRef?
......
...@@ -116,7 +116,7 @@ SAL_CALL XMLSignature_MSCryptImpl::generate( ...@@ -116,7 +116,7 @@ SAL_CALL XMLSignature_MSCryptImpl::generate(
if( pDsigCtx == nullptr ) if( pDsigCtx == nullptr )
{ {
//throw XMLSignatureException() ; //throw XMLSignatureException() ;
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
clearErrorRecorder(); clearErrorRecorder();
return aTemplate; return aTemplate;
} }
...@@ -136,7 +136,7 @@ SAL_CALL XMLSignature_MSCryptImpl::generate( ...@@ -136,7 +136,7 @@ SAL_CALL XMLSignature_MSCryptImpl::generate(
xmlSecDSigCtxDestroy( pDsigCtx ) ; xmlSecDSigCtxDestroy( pDsigCtx ) ;
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
//Unregistered the stream/URI binding //Unregistered the stream/URI binding
if( xUriBinding.is() ) if( xUriBinding.is() )
...@@ -212,7 +212,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate( ...@@ -212,7 +212,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate(
pDsigCtx = xmlSecDSigCtxCreate( pMngr ) ; pDsigCtx = xmlSecDSigCtxCreate( pMngr ) ;
if( pDsigCtx == nullptr ) if( pDsigCtx == nullptr )
{ {
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
clearErrorRecorder(); clearErrorRecorder();
return aTemplate; return aTemplate;
} }
...@@ -253,7 +253,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate( ...@@ -253,7 +253,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate(
} }
xmlSecDSigCtxDestroy( pDsigCtx ) ; xmlSecDSigCtxDestroy( pDsigCtx ) ;
pSecEnv->destroyKeysManager( pMngr ); SecurityEnvironment_MSCryptImpl::destroyKeysManager( pMngr );
//Unregistered the stream/URI binding //Unregistered the stream/URI binding
if( xUriBinding.is() ) if( xUriBinding.is() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment