mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[keyboard] Warnings-- for nullptr
This commit is contained in:
parent
51ccd6be4d
commit
583cc06f7c
1 changed files with 2 additions and 2 deletions
|
@ -160,9 +160,9 @@ bool KeyBoardPreview::loadCodes() {
|
||||||
|
|
||||||
QString KeyBoardPreview::fromUnicodeString(QString raw) {
|
QString KeyBoardPreview::fromUnicodeString(QString raw) {
|
||||||
if (raw.startsWith("U+"))
|
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"))
|
else if (raw.startsWith("+U"))
|
||||||
return QChar(raw.mid(3).toInt(0, 16));
|
return QChar(raw.mid(3).toInt(nullptr, 16));
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue