From 3bfb848e6db4e7d5a7f1f9c5663bf7262402fed9 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 23 Jul 2018 14:51:47 +0200 Subject: Namespacing to avoid a conflict with that other context. --- framework/src/domain/mime/crypto.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/src') diff --git a/framework/src/domain/mime/crypto.cpp b/framework/src/domain/mime/crypto.cpp index 8450107a..b85820d4 100644 --- a/framework/src/domain/mime/crypto.cpp +++ b/framework/src/domain/mime/crypto.cpp @@ -45,6 +45,7 @@ QDebug operator<< (QDebug d, const Error &error) return d; } +namespace Crypto { struct Data { Data(const QByteArray &buffer) { @@ -61,6 +62,7 @@ struct Data { } gpgme_data_t data; }; +} static gpgme_error_t checkEngine(CryptoProtocol protocol) { @@ -103,6 +105,7 @@ static std::pair createForProtocol(CryptoProtocol pr } +namespace Crypto { struct Context { Context(CryptoProtocol protocol = OpenPGP) { @@ -123,6 +126,7 @@ struct Context { Error error; gpgme_ctx_t context; }; +} static QByteArray toBA(gpgme_data_t out) -- cgit v1.2.3