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:
parent
2433e5804c
commit
d0a4084cbf
@ -32,9 +32,9 @@
|
|||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <stdio.h>
|
#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)
|
QChar get(QSharedMemory &sm, int i)
|
||||||
|
Loading…
Reference in New Issue
Block a user