Fix compilation error

This commit is contained in:
Janek Bevendorff 2018-01-06 13:11:47 +01:00 committed by Jonathan White
parent 564188b0d3
commit f7d3c90218
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ QByteArray CryptoHash::result() const
{
Q_D(const CryptoHash);
const auto* result = reinterpret_cast<const char*>(gcry_md_read(d->ctx, 0));
const auto result = reinterpret_cast<const char*>(gcry_md_read(d->ctx, 0));
return QByteArray(result, d->hashLen);
}

View File

@ -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);
});