summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorHou Lei <houlei@uniontech.com>2021-02-08 11:48:23 +0800
committerHou Lei <houlei@uniontech.com>2021-02-09 10:27:14 +0800
commit841e63cb77094a7a50fe7c9f0e210b045f7c7402 (patch)
tree4bf332911c11f45d6919b5e2edd61d9348df8557 /src/widgets
parentff510b98d99a45880cf89b9949175ceda5f084c5 (diff)
Canonical pointer usage
Other affected rows have also been fixed. Change-Id: Ie0a32f724bd2e40e7bfacfaa43a78190b58e4a21 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/dialogs/qfontdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qfontdialog.cpp b/src/widgets/dialogs/qfontdialog.cpp
index 6e7253b789..3a835641df 100644
--- a/src/widgets/dialogs/qfontdialog.cpp
+++ b/src/widgets/dialogs/qfontdialog.cpp
@@ -575,7 +575,7 @@ void QFontDialogPrivate::updateStyles()
QString cstyle = style;
redo:
- for (int i = 0; i < (int)styleList->count(); i++) {
+ for (int i = 0; i < static_cast<int>(styleList->count()); i++) {
if (cstyle == styleList->text(i)) {
styleList->setCurrentItem(i);
found = true;