Windows QPA: Fix deprecated QString::fromUtf16(ushort*) call
Amends 23849826b4.
Change-Id: Iefd29bd4c19aaf7c4444b2913bd143dc11c03d3c
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
bb10
parent
f76161d61f
commit
547d5e1f55
|
|
@ -712,7 +712,7 @@ int QWindowsContext::screenDepth() const
|
|||
QString QWindowsContext::windowsErrorMessage(unsigned long errorCode)
|
||||
{
|
||||
QString rc = QString::fromLatin1("#%1: ").arg(errorCode);
|
||||
ushort *lpMsgBuf;
|
||||
char16_t *lpMsgBuf;
|
||||
|
||||
const DWORD len = FormatMessage(
|
||||
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||
|
|
|
|||
Loading…
Reference in New Issue