summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-07-31 18:53:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-01 13:57:55 +0200
commite5982d9148d84874237470102e804c52432aa502 (patch)
treeb5f741aeec696327d61dbc2b91a3786f896338e5 /xmlsecurity
parente698cbd8f860ba6f483f1476e694706717451d2f (diff)
osl::Mutex->std::mutex in ODigestContext
Change-Id: I168750490f2c60f8c93aef630949acb4e29734b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119750 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/nss/digestcontext.cxx4
-rw-r--r--xmlsecurity/source/xmlsec/nss/digestcontext.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/digestcontext.cxx b/xmlsecurity/source/xmlsec/nss/digestcontext.cxx
index d8c46543c0ae..4f05dd4b0da9 100644
--- a/xmlsecurity/source/xmlsec/nss/digestcontext.cxx
+++ b/xmlsecurity/source/xmlsec/nss/digestcontext.cxx
@@ -37,7 +37,7 @@ ODigestContext::~ODigestContext()
void SAL_CALL ODigestContext::updateDigest( const uno::Sequence< ::sal_Int8 >& aData )
{
- ::osl::MutexGuard aGuard( m_aMutex );
+ std::lock_guard aGuard( m_aMutex );
if ( m_bBroken )
throw uno::RuntimeException();
@@ -65,7 +65,7 @@ void SAL_CALL ODigestContext::updateDigest( const uno::Sequence< ::sal_Int8 >& a
uno::Sequence< ::sal_Int8 > SAL_CALL ODigestContext::finalizeDigestAndDispose()
{
- ::osl::MutexGuard aGuard( m_aMutex );
+ std::lock_guard aGuard( m_aMutex );
if ( m_bBroken )
throw uno::RuntimeException();
diff --git a/xmlsecurity/source/xmlsec/nss/digestcontext.hxx b/xmlsecurity/source/xmlsec/nss/digestcontext.hxx
index 91326daca395..72e1864851fc 100644
--- a/xmlsecurity/source/xmlsec/nss/digestcontext.hxx
+++ b/xmlsecurity/source/xmlsec/nss/digestcontext.hxx
@@ -22,13 +22,13 @@
#include <com/sun/star/xml/crypto/XDigestContext.hpp>
#include <cppuhelper/implbase.hxx>
-#include <osl/mutex.hxx>
+#include <mutex>
#include <secmodt.h>
class ODigestContext : public cppu::WeakImplHelper< css::xml::crypto::XDigestContext >
{
private:
- ::osl::Mutex m_aMutex;
+ std::mutex m_aMutex;
PK11Context* m_pContext;
sal_Int32 const m_nDigestLength;