diff --git a/src/core/Alloc.cpp b/src/core/Alloc.cpp index a076b70a9..967b4e3ef 100644 --- a/src/core/Alloc.cpp +++ b/src/core/Alloc.cpp @@ -17,6 +17,7 @@ #include #include +#include #include #if defined(Q_OS_MACOS) #include diff --git a/src/keeshare/ShareExport.cpp b/src/keeshare/ShareExport.cpp index 500d8d3f9..c17c5052c 100644 --- a/src/keeshare/ShareExport.cpp +++ b/src/keeshare/ShareExport.cpp @@ -149,8 +149,7 @@ namespace KeeShareSettings::Sign sign; auto sshKey = own.key.sshKey(); sshKey.openKey(QString()); - const Signature signer; - sign.signature = signer.create(bytes, sshKey); + sign.signature = Signature::create(bytes, sshKey); sign.certificate = own.certificate; stream << KeeShareSettings::Sign::serialize(sign); stream.flush();