summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-28 15:29:02 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-28 15:29:02 +0200
commitc2bd81b037aad4752aa54c1ba81d4bef547f6f75 (patch)
tree2255fe932f2eaa706a03f290b00aac20a598d210
parentcac88905b3274abe0e9e20ef3e608a6486cff52d (diff)
downloadkube-c2bd81b037aad4752aa54c1ba81d4bef547f6f75.tar.gz
kube-c2bd81b037aad4752aa54c1ba81d4bef547f6f75.zip
Fixed some warnings
-rw-r--r--framework/src/domain/mime/crypto.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/src/domain/mime/crypto.cpp b/framework/src/domain/mime/crypto.cpp
index 863c4b38..8450107a 100644
--- a/framework/src/domain/mime/crypto.cpp
+++ b/framework/src/domain/mime/crypto.cpp
@@ -240,7 +240,7 @@ ImportResult Crypto::importKeys(CryptoProtocol protocol, const QByteArray &certD
240 qWarning() << "Failed to create context " << context.error; 240 qWarning() << "Failed to create context " << context.error;
241 return {0, 0, 0}; 241 return {0, 0, 0};
242 } 242 }
243 if (auto err = gpgme_op_import(context.context, Data{certData}.data)) { 243 if (gpgme_op_import(context.context, Data{certData}.data)) {
244 qWarning() << "Import failed"; 244 qWarning() << "Import failed";
245 return {0, 0, 0}; 245 return {0, 0, 0};
246 } 246 }
@@ -287,7 +287,7 @@ static KeyListResult listKeys(CryptoProtocol protocol, const std::vector<const c
287 287
288 while (true) { 288 while (true) {
289 gpgme_key_t key; 289 gpgme_key_t key;
290 if (auto e = gpgme_op_keylist_next(ctx, &key)) { 290 if (gpgme_op_keylist_next(ctx, &key)) {
291 break; 291 break;
292 } 292 }
293 Key k; 293 Key k;
@@ -371,7 +371,6 @@ Expected<Error, QByteArray> Crypto::signAndEncrypt(const QByteArray &content, co
371 } 371 }
372 372
373 return toBA(out); 373 return toBA(out);
374;
375} 374}
376 375
377Expected<Error, std::pair<QByteArray, QString>> 376Expected<Error, std::pair<QByteArray, QString>>