From 5a2815fefcffb3d693695c95e71b47747e67ddba Mon Sep 17 00:00:00 2001 From: Tom Dewey Date: Wed, 31 Jul 2024 14:21:53 +0100 Subject: [PATCH] acceleratedcryptographichash: pimpl for macos, windows --- src/mac/acceleratedcryptographichash_commoncrypto.cpp | 4 ++-- src/windows/acceleratedcryptographichash_cng.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mac/acceleratedcryptographichash_commoncrypto.cpp b/src/mac/acceleratedcryptographichash_commoncrypto.cpp index 7782b9b..9229699 100644 --- a/src/mac/acceleratedcryptographichash_commoncrypto.cpp +++ b/src/mac/acceleratedcryptographichash_commoncrypto.cpp @@ -9,8 +9,8 @@ #include -struct AcceleratedCryptographicHash::Impl { - explicit Impl(QCryptographicHash::Algorithm algo) { +struct AcceleratedCryptographicHash::impl { + explicit impl(QCryptographicHash::Algorithm algo) { if (method != QCryptographicHash::Sha256) throw std::runtime_error("Only sha256 implemented"); diff --git a/src/windows/acceleratedcryptographichash_cng.cpp b/src/windows/acceleratedcryptographichash_cng.cpp index 042d076..77e73b6 100644 --- a/src/windows/acceleratedcryptographichash_cng.cpp +++ b/src/windows/acceleratedcryptographichash_cng.cpp @@ -14,8 +14,8 @@ #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L) -struct AcceleratedCryptographicHash::Impl { - explicit Impl(QCryptographicHash::Algorithm algo) { +struct AcceleratedCryptographicHash::impl { + explicit impl(QCryptographicHash::Algorithm algo) { if (method != QCryptographicHash::Sha256) throw std::runtime_error("Only sha256 implemented"); @@ -89,7 +89,7 @@ struct AcceleratedCryptographicHash::Impl { } } - ~Impl() { + ~impl() { cleanup() } @@ -176,4 +176,4 @@ void AcceleratedCryptographicHash::addData(const QByteArray &data) { } QByteArray AcceleratedCryptographicHash::result() { return p_Impl->result(); -} +} \ No newline at end of file