From 64194b0f8df1afe6135cd119fd3216fc8db68033 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 17 Aug 2016 07:23:05 +0200 Subject: Cpp: Fix some pedantic warnings * lang/cpp/src/context.cpp, lang/cpp/src/context.h (Context::getKeysFromRecipients): Remove ignored / invalid const qualifier. * lang/cpp/src/result.h: Don't shadow error function in ctor. --- lang/cpp/src/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/cpp/src/context.cpp') diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 1a2741eb..11080cfa 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -1109,7 +1109,7 @@ static gpgme_encrypt_flags_t encryptflags2encryptflags(Context::EncryptionFlags return static_cast(result); } -gpgme_key_t *const Context::getKeysFromRecipients(const std::vector &recipients) +gpgme_key_t *Context::getKeysFromRecipients(const std::vector &recipients) { if (recipients.empty()) { return nullptr; -- cgit v1.2.3