Mercurial > hg > svcore
changeset 1484:5b2ce6c30258
Fix for older Qt version
author | Chris Cannam |
---|---|
date | Tue, 12 Jun 2018 11:18:07 +0100 |
parents | 7459f4c4d7c3 |
children | cee5ed3f243a |
files | system/test/TestEnv.h |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/system/test/TestEnv.h Mon Jun 11 14:40:09 2018 +0100 +++ b/system/test/TestEnv.h Tue Jun 12 11:18:07 2018 +0100 @@ -38,7 +38,7 @@ bool rv = getEnvUtf8("nonexistent_environment_variable_I_sincerely_hope_including_a_missspellling_just_to_be_sure", value); QCOMPARE(rv, false); - QCOMPARE(value, ""); + QCOMPARE(value, string()); } void getExpected() @@ -62,7 +62,7 @@ string value; rv = getEnvUtf8("SV_CORE_TEST_SYSTEM_RT_A_A", value); QCOMPARE(rv, true); - QCOMPARE(value, "EXPECTED_VALUE"); + QCOMPARE(value, string("EXPECTED_VALUE")); } void roundTripAsciiUtf8() @@ -84,7 +84,7 @@ string value; rv = getEnvUtf8("SV_CORE_TEST_SYSTEM_RT_\351\207\215\345\272\206_A", value); QCOMPARE(rv, true); - QCOMPARE(value, "EXPECTED_VALUE"); + QCOMPARE(value, string("EXPECTED_VALUE")); } void roundTripUtf8Utf8()