summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-11-05 09:54:48 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-11-05 13:53:59 +0000
commitf13d8163ec80afdb0051897dc705598ea2691725 (patch)
treeccf5f10d557b9672477f27c7280a8fdde04c043a /tests
parent3c50f459c6f3e4e3cc47f961d52c30f3d63cf2a0 (diff)
tst_qdatetime: Fix compiler warning about uninitialized variable.
warning: 'typemsg1' may be used uninitialized in this function [-Wmaybe-uninitialized] Change-Id: Ie68d279eccb003a2ca5a0116eea336cbc8776660 Reviewed-by: Edward Welbourne <edward.welbourne@theqtcompany.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp b/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp
index df9089057d..6cf73c85de 100644
--- a/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp
+++ b/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp
@@ -188,10 +188,10 @@ tst_QDateTime::tst_QDateTime()
void tst_QDateTime::initTestCase()
{
// Never construct a message like this in an i18n context...
- const char *typemsg1, *typemsg2 = "and therefore not";
+ const char *typemsg1 = "exactly";
+ const char *typemsg2 = "and therefore not";
switch (localTimeType) {
case LocalTimeIsUtc:
- typemsg1 = "exactly";
break;
case LocalTimeBehindUtc:
typemsg1 = "behind";