Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/util/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ inline QString convertWCStringToQString(
DEBUG_ASSERT(ilen >= 0); // unsigned -> signed
switch (sizeof(wchar_t)) {
case sizeof(ushort):
return QString::fromUtf16(reinterpret_cast<const ushort*>(wcs), ilen);
return QString::fromUtf16(reinterpret_cast<const char16_t*>(wcs), ilen);
case sizeof(uint):
return QString::fromUcs4(reinterpret_cast<const uint*>(wcs), ilen);
return QString::fromUcs4(reinterpret_cast<const char32_t*>(wcs), ilen);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would also be nice to adjust the case targets.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default:
DEBUG_ASSERT(!"unsupported character type");
return QString();
Expand Down