summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextengine.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-05-12 07:50:55 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-05-12 12:25:14 +0200
commit973f840e323e5405cbf166de085743c9c8dc59dd (patch)
tree91d1fd2bdd9ca69d0b8b9c2c4cc261a5cc1ef88f /src/gui/text/qtextengine.cpp
parent11dc9454037fd3c5d69328d7babd86d34fd2c5d1 (diff)
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>
Diffstat (limited to 'src/gui/text/qtextengine.cpp')
-rw-r--r--src/gui/text/qtextengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp
index f5e77e0e61..3842b775f9 100644
--- a/src/gui/text/qtextengine.cpp
+++ b/src/gui/text/qtextengine.cpp
@@ -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 {