aboutsummaryrefslogtreecommitdiffstats
path: root/src/keygenthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/keygenthread.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/keygenthread.cpp b/src/keygenthread.cpp
index c5588773..3b004799 100644
--- a/src/keygenthread.cpp
+++ b/src/keygenthread.cpp
@@ -21,14 +21,14 @@
#include "keygenthread.h"
-KeyGenThread::KeyGenThread(QString keyGenParams, GpgME::GpgContext *ctx)
-{
- this->keyGenParams = keyGenParams;
+#include <utility>
+
+KeyGenThread::KeyGenThread(QString keyGenParams, GpgME::GpgContext *ctx) {
+ this->keyGenParams = std::move(keyGenParams);
this->mCtx = ctx;
abort = false;
}
-void KeyGenThread::run()
-{
+void KeyGenThread::run() {
mCtx->generateKey(&keyGenParams);
}