aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/signingresult.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-01-05 19:17:57 +0000
committerIngo Klöcker <[email protected]>2023-01-05 19:17:57 +0000
commitdc9cc9aa0754d834388acabb5a68677f6512b960 (patch)
tree7382e34e23cf12524ae96dac6c1af3b8968f1f4d /lang/cpp/src/signingresult.h
parentqt: Replace Q_DECL_OVERRIDE with override (diff)
downloadgpgme-dc9cc9aa0754d834388acabb5a68677f6512b960.tar.gz
gpgme-dc9cc9aa0754d834388acabb5a68677f6512b960.zip
cpp: Expliticly declare compiler generated copy constructors
* lang/cpp/src/configuration.h (Component, Option), lang/cpp/src/data.h (Data), lang/cpp/src/decryptionresult.h (DecryptionResult, DecryptionResult::Recipient), lang/cpp/src/encryptionresult.h (EncryptionResult, InvalidRecipient), lang/cpp/src/engineinfo.h (EngineInfo), lang/cpp/src/importresult.h (ImportResult, Import), lang/cpp/src/key.h (Key, Subkey, UserID, UserID::Signature), lang/cpp/src/keygenerationresult.h (KeyGenerationResult), lang/cpp/src/keylistresult.h (KeyListResult), lang/cpp/src/notation.h (Notation), lang/cpp/src/signingresult.h (SigningResult, InvalidSigningKey, CreatedSignature), lang/cpp/src/swdbresult.h (SwdbResult), lang/cpp/src/tofuinfo.h (TofuInfo), lang/cpp/src/verificationresult.h (VerificationResult, Signature), lang/cpp/src/vfsmountresult.h (VfsMountResult): Explitily declare compiler generated copy constructor. -- This fixes "implicitly-declared copy constructor is deprecated" warnings.
Diffstat (limited to '')
-rw-r--r--lang/cpp/src/signingresult.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/cpp/src/signingresult.h b/lang/cpp/src/signingresult.h
index c6654fca..0c2994c7 100644
--- a/lang/cpp/src/signingresult.h
+++ b/lang/cpp/src/signingresult.h
@@ -50,6 +50,7 @@ public:
SigningResult(gpgme_ctx_t ctx, const Error &error);
explicit SigningResult(const Error &err);
+ SigningResult(const SigningResult &other) = default;
const SigningResult &operator=(SigningResult other)
{
swap(other);
@@ -86,6 +87,7 @@ class GPGMEPP_EXPORT InvalidSigningKey
public:
InvalidSigningKey();
+ InvalidSigningKey(const InvalidSigningKey &other) = default;
const InvalidSigningKey &operator=(InvalidSigningKey other)
{
swap(other);
@@ -119,6 +121,7 @@ public:
CreatedSignature();
+ CreatedSignature(const CreatedSignature &other) = default;
const CreatedSignature &operator=(CreatedSignature other)
{
swap(other);