From efe58fe011f195d98adb4f03b1e1068a26ba287b Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 11 Jan 2017 15:52:44 +0100 Subject: Fix Qgpgme build for macos * lang/qt/src/dn.cpp: Include string.h (parse_dn_part): Use qstrdup. * lang/qt/tests/t-support.h (getPassphrase): Use qstrdup. --- lang/qt/tests/t-support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/qt/tests/t-support.h') diff --git a/lang/qt/tests/t-support.h b/lang/qt/tests/t-support.h index 704fab4c..2630b7d4 100644 --- a/lang/qt/tests/t-support.h +++ b/lang/qt/tests/t-support.h @@ -42,7 +42,7 @@ public: char *getPassphrase(const char * /*useridHint*/, const char * /*description*/, bool /*previousWasBad*/, bool &/*canceled*/) Q_DECL_OVERRIDE { - return strdup("abc"); + return qstrdup("abc"); } }; } // namespace GpgME -- cgit v1.2.3