QSharedMemory: do not abuse QChar in a test

The set() function sets a given byte in shared memory. Thus,
just take a char, not a QChar.

Change-Id: I6f3d148eb730573070832ddce6f63363408790cf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2020-11-04 22:10:39 +01:00
parent 2433e5804c
commit d0a4084cbf

View File

@ -32,9 +32,9 @@
#include <QTest>
#include <stdio.h>
void set(QSharedMemory &sm, int pos, QChar value)
void set(QSharedMemory &sm, int pos, char value)
{
((char*)sm.data())[pos] = value.toLatin1();
((char*)sm.data())[pos] = value;
}
QChar get(QSharedMemory &sm, int i)