Skip to content

Commit

Permalink
[buteo-syncml] Avoid narrowing data in test. Contributes to JB#46923
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Adams committed Sep 10, 2019
1 parent a362bc3 commit 47dbb37
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests_meego/syncelementstests/SyncMLItemTest.cpp
Expand Up @@ -73,9 +73,9 @@ void SyncMLItemTest::regressionNB188615_01()
// Regression test for NB#188615: make sure that data encoded
// in UTF-8 is written properly when constructing XML using
// Qt
const char utf[] = { 0xC5, 0x9F, 0 };
const unsigned char utf[] = { 0xC5, 0x9F, 0 };

QByteArray data( utf );
QByteArray data( (const char*)utf );

SyncMLItem item;

Expand All @@ -94,8 +94,8 @@ void SyncMLItemTest::regressionNB188615_02()
// Regression test for NB#188615: make sure that data encoded
// in UTF-8 is written properly when constructing XML using
// libwbxml2
const char utf[] = { 0xC5, 0x9F, 0 };
QByteArray data( utf );
const unsigned char utf[] = { 0xC5, 0x9F, 0 };
QByteArray data( (const char*)utf );

SyncMLItem item;
// Add namespace attribute, needed by libwbxml2
Expand All @@ -115,9 +115,9 @@ void SyncMLItemTest::regressionNB188615_03()
// Regression test for NB#188615: make sure that data encoded
// in UTF-8 is written properly when constructing WnXML using
// libwbxml2
const char utf[] = { 0xC5, 0x9F, 0 };
const unsigned char utf[] = { 0xC5, 0x9F, 0 };

QByteArray data( utf );
QByteArray data( (const char*)utf );

SyncMLItem item;
// Add namespace attribute, needed by libwbxml2
Expand Down

0 comments on commit 47dbb37

Please sign in to comment.