aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2017-01-11 14:52:44 +0000
committerAndre Heinecke <[email protected]>2017-01-11 14:52:44 +0000
commitefe58fe011f195d98adb4f03b1e1068a26ba287b (patch)
tree8dbe7687555eaa3ade34defda4b3479b183580fb /lang/qt/tests
parentFix cmake configuration files for MacOS (diff)
downloadgpgme-efe58fe011f195d98adb4f03b1e1068a26ba287b.tar.gz
gpgme-efe58fe011f195d98adb4f03b1e1068a26ba287b.zip
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.
Diffstat (limited to 'lang/qt/tests')
-rw-r--r--lang/qt/tests/t-support.h2
1 files changed, 1 insertions, 1 deletions
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