MSVC: Fix build with -developer-build

Passing 0xA7 to a signed char causes a truncation warning with MSVC2017.
Make the cast explicit.

Change-Id: Ief1a97c52544b271556811816f7804074bd336df
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2020-05-12 07:50:55 +02:00
parent 11dc945403
commit 973f840e32

View File

@ -1887,9 +1887,9 @@ void QTextEngine::validate() const
layoutData->string = block.text();
const bool nextBlockValid = block.next().isValid();
if (!nextBlockValid && option.flags() & QTextOption::ShowDocumentTerminator) {
layoutData->string += QLatin1Char(0xA7);
layoutData->string += QLatin1Char('\xA7');
} else if (option.flags() & QTextOption::ShowLineAndParagraphSeparators) {
layoutData->string += QLatin1Char(nextBlockValid ? 0xb6 : 0x20);
layoutData->string += QLatin1Char(nextBlockValid ? '\xB6' : '\x20');
}
} else {