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>
This commit is contained in:
Friedemann Kleint 2015-11-05 09:54:48 +01:00
parent 3c50f459c6
commit f13d8163ec

View File

@ -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";