Skip to content

Commit

Permalink
Merge branch 'jb46923' into 'master'
Browse files Browse the repository at this point in the history
[buteo-syncml] Avoid narrowing data in test. Contributes to JB#46923

See merge request mer-core/buteo-syncml!3
  • Loading branch information
chriadam committed Sep 11, 2019
2 parents a362bc3 + 47dbb37 commit 2e5199f
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 2e5199f

Please sign in to comment.