Restore safe reinterpret_cast in Synergy GUI
This commit is contained in:
parent
0568271506
commit
f1cd215f28
|
@ -29,7 +29,7 @@ SynergyLocale::SynergyLocale()
|
||||||
void SynergyLocale::loadLanguages()
|
void SynergyLocale::loadLanguages()
|
||||||
{
|
{
|
||||||
QResource resource(":/res/lang/Languages.xml");
|
QResource resource(":/res/lang/Languages.xml");
|
||||||
QByteArray bytes(static_cast<const char*>(resource.data()), resource.size());
|
QByteArray bytes(reinterpret_cast<const char*>(resource.data()), resource.size());
|
||||||
QXmlStreamReader xml(bytes);
|
QXmlStreamReader xml(bytes);
|
||||||
|
|
||||||
while (!xml.atEnd())
|
while (!xml.atEnd())
|
||||||
|
|
Loading…
Reference in New Issue