aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-tofuinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/qt/tests/t-tofuinfo.cpp')
-rw-r--r--lang/qt/tests/t-tofuinfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/qt/tests/t-tofuinfo.cpp b/lang/qt/tests/t-tofuinfo.cpp
index 83310921..3072f0fc 100644
--- a/lang/qt/tests/t-tofuinfo.cpp
+++ b/lang/qt/tests/t-tofuinfo.cpp
@@ -73,7 +73,8 @@ class TofuInfoTest: public QGpgMETest
void signAndVerify(const QString &what, const GpgME::Key &key, int expected)
{
Context *ctx = Context::createForProtocol(OpenPGP);
- ctx->setPassphraseProvider(new TestPassphraseProvider);
+ TestPassphraseProvider provider;
+ ctx->setPassphraseProvider(&provider);
ctx->setPinentryMode(Context::PinentryLoopback);
auto *job = new QGpgMESignJob(ctx);