diff --git a/lang/qt/tests/t-support.h b/lang/qt/tests/t-support.h index 2630b7d4..e3f0e781 100644 --- a/lang/qt/tests/t-support.h +++ b/lang/qt/tests/t-support.h @@ -34,6 +34,8 @@ #include "interfaces/passphraseprovider.h" #include +#include + namespace GpgME { class TestPassphraseProvider : public PassphraseProvider @@ -42,7 +44,9 @@ public: char *getPassphrase(const char * /*useridHint*/, const char * /*description*/, bool /*previousWasBad*/, bool &/*canceled*/) Q_DECL_OVERRIDE { - return qstrdup("abc"); + char *ret; + gpgrt_asprintf(&ret, "abc"); + return ret; } }; } // namespace GpgME