From c4b39a77950b3b737de06eca044b35a845fc6299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Wed, 23 Oct 2024 10:10:02 +0200 Subject: [PATCH] cpp: Put attributes before declarations * lang/cpp/src/key.h (UserID::Signature::Notation): Move GPGMEPP_DEPRECATED before the whole typedef declaration. * lang/cpp/src/verificationresult.h (Signature::Notation): Ditto. -- --- lang/cpp/src/key.h | 2 +- lang/cpp/src/verificationresult.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h index de0f25a7..8d92b0d4 100644 --- a/lang/cpp/src/key.h +++ b/lang/cpp/src/key.h @@ -475,7 +475,7 @@ private: class GPGMEPP_EXPORT UserID::Signature { public: - typedef GPGMEPP_DEPRECATED GpgME::Notation Notation; + GPGMEPP_DEPRECATED typedef GpgME::Notation Notation; Signature(); Signature(const shared_gpgme_key_t &key, gpgme_user_id_t uid, gpgme_key_sig_t sig); diff --git a/lang/cpp/src/verificationresult.h b/lang/cpp/src/verificationresult.h index 04c439de..cd455d31 100644 --- a/lang/cpp/src/verificationresult.h +++ b/lang/cpp/src/verificationresult.h @@ -87,7 +87,7 @@ class GPGMEPP_EXPORT Signature friend class ::GpgME::VerificationResult; Signature(const std::shared_ptr &parent, unsigned int index); public: - typedef GPGMEPP_DEPRECATED GpgME::Notation Notation; + GPGMEPP_DEPRECATED typedef GpgME::Notation Notation; Signature();