switch (inputMethod) {
case InputHex:
- if (t == ""
+ if (t.isEmpty()
|| (t.length() == 1 && !(t == "9" || t == "a" || t == "d"))
|| (t.length() == 2 && t.at(0) == QChar('1'))) {
isControlCharacter = true;
for (i = 1; i <= 4; i++) {
if (unicode > i && !controlCharacter(unicode - i)) {
- left = " " + left;
+ left = ' ' + left;
left = QChar(unicode - i) + left;
}
}
for (i = 1; i <= 8; i++) {
if (unicode + i <= MAX_UNICODE_V1 && !controlCharacter(unicode + i)) {
right += QChar(unicode + i);
- right += " ";
+ right += ' ';
}
}