summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-16 16:10:39 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-19 16:51:25 +0200
commitc554f9ef0a8af91597d367c8fb69568def871c32 (patch)
tree5ad2acbba3767027c876176189e6437073c0afc2 /src/gui
parent4ea7fbaf00bdfe804971dd05e56099ab915579f1 (diff)
QTextTable: fix an implicit uint->int conversion
Make it explicit; didn't investigate why mixed comparisons are used here. Change-Id: Idd353c76a65ca1c8c4a158886f64c9cbb321494b Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/text/qtexttable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtexttable.cpp b/src/gui/text/qtexttable.cpp
index 6594b4e879..d4ed4411bc 100644
--- a/src/gui/text/qtexttable.cpp
+++ b/src/gui/text/qtexttable.cpp
@@ -403,7 +403,7 @@ void QTextTablePrivate::fragmentAdded(QChar type, uint fragment)
if (blockFragmentUpdates)
return;
if (type == QTextBeginningOfFrame) {
- Q_ASSERT(cells.indexOf(fragment) == -1);
+ Q_ASSERT(cells.indexOf(int(fragment)) == -1);
const uint pos = pieceTable->fragmentMap().position(fragment);
QFragmentFindHelper helper(pos, pieceTable->fragmentMap());
auto it = std::lower_bound(cells.begin(), cells.end(), helper);
@@ -421,7 +421,7 @@ void QTextTablePrivate::fragmentRemoved(QChar type, uint fragment)
if (blockFragmentUpdates)
return;
if (type == QTextBeginningOfFrame) {
- Q_ASSERT(cells.indexOf(fragment) != -1);
+ Q_ASSERT(cells.indexOf(int(fragment)) != -1);
cells.removeAll(fragment);
if (fragment_start == fragment && cells.size()) {
fragment_start = cells.at(0);