[keyboard] Warnings-- for nullptr
This commit is contained in:
parent
51ccd6be4d
commit
583cc06f7c
@ -160,9 +160,9 @@ bool KeyBoardPreview::loadCodes() {
|
||||
|
||||
QString KeyBoardPreview::fromUnicodeString(QString raw) {
|
||||
if (raw.startsWith("U+"))
|
||||
return QChar(raw.mid(2).toInt(0, 16));
|
||||
return QChar(raw.mid(2).toInt(nullptr, 16));
|
||||
else if (raw.startsWith("+U"))
|
||||
return QChar(raw.mid(3).toInt(0, 16));
|
||||
return QChar(raw.mid(3).toInt(nullptr, 16));
|
||||
|
||||
return "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user