summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-05-14 12:59:42 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-05-15 18:46:39 +0200
commit794150e5bda0c203a5373c3fa2f9785f9941f6dd (patch)
tree2588b9ad3e3034ac9ee8a03a75d26c23223402cd /tests
parent45cf8da63c419c27e7476f0a929e9d8ba664bfd3 (diff)
QMetaType: Support char16_t and char32_t
Change-Id: Ieec6d4bc64967d875ea12b31638aab05bc682ea3 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h
index bf01fdcfcd..3f00db5519 100644
--- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h
+++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h
@@ -136,6 +136,12 @@ template<> struct TestValueFactory<QMetaType::Short> {
template<> struct TestValueFactory<QMetaType::Char> {
static char *create() { return new char('c'); }
};
+template<> struct TestValueFactory<QMetaType::Char16> {
+ static char16_t *create() { return new char16_t('c'); }
+};
+template<> struct TestValueFactory<QMetaType::Char32> {
+ static char32_t *create() { return new char32_t('c'); }
+};
template<> struct TestValueFactory<QMetaType::ULong> {
static ulong *create() { return new ulong(ULONG_MAX); }
};