acceleratedcryptographichash: pimpl for macos, windows

This commit is contained in:
Tom Dewey 2024-07-31 14:21:53 +01:00 committed by Tom Dewey
parent 103924eff0
commit 5a2815fefc
2 changed files with 6 additions and 6 deletions

View file

@ -9,8 +9,8 @@
#include <CommonCrypto/CommonDigest.h> #include <CommonCrypto/CommonDigest.h>
struct AcceleratedCryptographicHash::Impl { struct AcceleratedCryptographicHash::impl {
explicit Impl(QCryptographicHash::Algorithm algo) { explicit impl(QCryptographicHash::Algorithm algo) {
if (method != QCryptographicHash::Sha256) if (method != QCryptographicHash::Sha256)
throw std::runtime_error("Only sha256 implemented"); throw std::runtime_error("Only sha256 implemented");

View file

@ -14,8 +14,8 @@
#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L) #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
struct AcceleratedCryptographicHash::Impl { struct AcceleratedCryptographicHash::impl {
explicit Impl(QCryptographicHash::Algorithm algo) { explicit impl(QCryptographicHash::Algorithm algo) {
if (method != QCryptographicHash::Sha256) if (method != QCryptographicHash::Sha256)
throw std::runtime_error("Only sha256 implemented"); throw std::runtime_error("Only sha256 implemented");
@ -89,7 +89,7 @@ struct AcceleratedCryptographicHash::Impl {
} }
} }
~Impl() { ~impl() {
cleanup() cleanup()
} }