diff options
author | Ingo Klöcker <[email protected]> | 2022-08-22 12:39:22 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-08-22 12:39:22 +0000 |
commit | 83176ad7d3e57ad7804d3c885e1b4fcd1d4d96f9 (patch) | |
tree | 22ae15b703b906aca891af82cdc772fda9cf5032 /lang/qt/src/util.cpp | |
parent | qt: Fix building with Qt6 (diff) | |
download | gpgme-83176ad7d3e57ad7804d3c885e1b4fcd1d4d96f9.tar.gz gpgme-83176ad7d3e57ad7804d3c885e1b4fcd1d4d96f9.zip |
qt: Fix building with C++11
* lang/qt/src/qgpgmerefreshsmimekeysjob.cpp
(QGpgMERefreshSMIMEKeysJob::start): Replace 'auto' in lambda with the
actual type.
* lang/qt/src/qgpgmesignkeyjob.cpp (class TrustSignatureProperties): Add
default c'tor and c'tor initializing all members.
* lang/qt/src/util.cpp (toFingerprints): Replace 'auto' in lambda with
the actual type.
* lang/qt/tests/run-exportjob.cpp (createExportJob): Replace 'auto'
return type with actual type.
--
This fixes compilation with strict C++11.
GnuPG-bug-id: 6141
Diffstat (limited to '')
-rw-r--r-- | lang/qt/src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/qt/src/util.cpp b/lang/qt/src/util.cpp index c6e1a6ae..d4190eb8 100644 --- a/lang/qt/src/util.cpp +++ b/lang/qt/src/util.cpp @@ -56,7 +56,7 @@ QStringList toFingerprints(const std::vector<GpgME::Key> &keys) { QStringList fprs; fprs.reserve(keys.size()); - std::transform(std::begin(keys), std::end(keys), std::back_inserter(fprs), [](const auto &k) { + std::transform(std::begin(keys), std::end(keys), std::back_inserter(fprs), [](const GpgME::Key &k) { return QString::fromLatin1(k.primaryFingerprint()); }); return fprs; |