summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec/nss/digestcontext.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:29:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:32:02 +0100
commit3a2037b11c28fdf9409a336f8086790bc6f8f86f (patch)
treeef7a94cf7e7b4f7a4ace1c035e0dcc4179fc2fda /xmlsecurity/source/xmlsec/nss/digestcontext.cxx
parent6de82da0c154a0e8a353125aa80a61779abfd3ba (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I2093e93e07ff19a1a1d2c8b6f221dac2bf2a2613
Diffstat (limited to 'xmlsecurity/source/xmlsec/nss/digestcontext.cxx')
-rw-r--r--xmlsecurity/source/xmlsec/nss/digestcontext.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/digestcontext.cxx b/xmlsecurity/source/xmlsec/nss/digestcontext.cxx
index 0dec799a0380..86f8c77b6f63 100644
--- a/xmlsecurity/source/xmlsec/nss/digestcontext.cxx
+++ b/xmlsecurity/source/xmlsec/nss/digestcontext.cxx
@@ -28,7 +28,7 @@ ODigestContext::~ODigestContext()
if ( m_pContext )
{
PK11_DestroyContext( m_pContext, PR_TRUE );
- m_pContext = NULL;
+ m_pContext = nullptr;
}
}
@@ -52,7 +52,7 @@ void SAL_CALL ODigestContext::updateDigest( const uno::Sequence< ::sal_Int8 >& a
if ( PK11_DigestOp( m_pContext, reinterpret_cast< const unsigned char* >( aToDigest.getConstArray() ), aToDigest.getLength() ) != SECSuccess )
{
PK11_DestroyContext( m_pContext, PR_TRUE );
- m_pContext = NULL;
+ m_pContext = nullptr;
m_bBroken = true;
throw uno::RuntimeException();
}
@@ -77,13 +77,13 @@ uno::Sequence< ::sal_Int8 > SAL_CALL ODigestContext::finalizeDigestAndDispose()
if ( PK11_DigestFinal( m_pContext, reinterpret_cast< unsigned char* >( aResult.getArray() ), &nResultLen, aResult.getLength() ) != SECSuccess )
{
PK11_DestroyContext( m_pContext, PR_TRUE );
- m_pContext = NULL;
+ m_pContext = nullptr;
m_bBroken = true;
throw uno::RuntimeException();
}
PK11_DestroyContext( m_pContext, PR_TRUE );
- m_pContext = NULL;
+ m_pContext = nullptr;
m_bDisposed = true;
aResult.realloc( nResultLen );