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/qgpgmesignkeyjob.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 'lang/qt/src/qgpgmesignkeyjob.cpp')
-rw-r--r-- | lang/qt/src/qgpgmesignkeyjob.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/qt/src/qgpgmesignkeyjob.cpp b/lang/qt/src/qgpgmesignkeyjob.cpp index 506d64a1..1693a5be 100644 --- a/lang/qt/src/qgpgmesignkeyjob.cpp +++ b/lang/qt/src/qgpgmesignkeyjob.cpp @@ -57,6 +57,15 @@ using namespace GpgME; namespace { struct TrustSignatureProperties { + TrustSignatureProperties() = default; + // needed for C++11 because until C++14 "aggregate initialization requires + // class type, that has no default member initializers" + TrustSignatureProperties(TrustSignatureTrust trust_, unsigned int depth_, const QString &scope_) + : trust{trust_} + , depth{depth_} + , scope{scope_} + {} + TrustSignatureTrust trust = TrustSignatureTrust::None; unsigned int depth = 0; QString scope; |