summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qurlinternal
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-09-16 13:49:26 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-09-16 14:52:40 +0200
commit8c6755aeec312ae771ef334fc863642514db3f7c (patch)
tree3ccec405ee35690bdb7def6c0a3c42866bd9adc2 /tests/auto/corelib/io/qurlinternal
parent104debb6627d71f5540bb2c3347ce56dddc63594 (diff)
parentc40a48af997f57caa0ecfca0b247837ba5b2f89b (diff)
Merge remote-tracking branch 'origin/stable' into dev
Conflicts: src/corelib/tools/qstring.cpp Change-Id: Ifc6cd3a0f1cf14cc0fe6cf30afb0c7f40cfdbc3e
Diffstat (limited to 'tests/auto/corelib/io/qurlinternal')
-rw-r--r--tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp b/tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp
index 05d5f94e3d..75b17df759 100644
--- a/tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp
+++ b/tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp
@@ -56,10 +56,11 @@
#define STRINGPREP_BIDI_LEADTRAIL_NOT_RAL 5
struct ushortarray {
- ushortarray(unsigned short *array = 0)
+ ushortarray() {}
+ template <size_t N>
+ ushortarray(unsigned short (&array)[N])
{
- if (array)
- memcpy(points, array, sizeof(points));
+ memcpy(points, array, N*sizeof(unsigned short));
}
unsigned short points[100];