diff --git a/src/crypto/CryptoHash.cpp b/src/crypto/CryptoHash.cpp index 70633da1..12c6bf79 100644 --- a/src/crypto/CryptoHash.cpp +++ b/src/crypto/CryptoHash.cpp @@ -109,7 +109,7 @@ QByteArray CryptoHash::result() const { Q_D(const CryptoHash); - const auto* result = reinterpret_cast(gcry_md_read(d->ctx, 0)); + const auto result = reinterpret_cast(gcry_md_read(d->ctx, 0)); return QByteArray(result, d->hashLen); } diff --git a/src/gui/DatabaseSettingsWidget.cpp b/src/gui/DatabaseSettingsWidget.cpp index b5c1ad45..5d1764cd 100644 --- a/src/gui/DatabaseSettingsWidget.cpp +++ b/src/gui/DatabaseSettingsWidget.cpp @@ -199,7 +199,7 @@ void DatabaseSettingsWidget::transformRoundsBenchmark() } // Determine the number of rounds required to meet 1 second delay - int rounds = AsyncTask::runAndWaitForFuture([this, kdf]() { + int rounds = AsyncTask::runAndWaitForFuture([kdf]() { return kdf->benchmark(1000); });