[Qt6] Be explicit about QChar()

This commit is contained in:
G.K.MacGregor
2023-08-20 19:01:53 +01:00
parent fe53cabee1
commit fe69e0cd0f
3 changed files with 431 additions and 431 deletions

View File

@@ -552,7 +552,7 @@ PasteCommand::PasteCommand(TeletextDocument *teletextDocument, int pageCharSet,
// that won't overwrite what's on the page
if (charToConvert == QChar::Null)
convertedChar = -1;
else if (charToConvert >= 0x01 && charToConvert <= 0x1f)
else if (charToConvert >= QChar(0x01) && charToConvert <= QChar(0x1f))
convertedChar = ' ';
else if (keymapping[pageCharSet].contains(charToConvert))
// Remapped character or non-Latin character converted successfully