diff options
author | Anton Kudryavtsev <[email protected]> | 2023-09-07 17:49:02 +0300 |
---|---|---|
committer | Anton Kudryavtsev <[email protected]> | 2023-09-08 19:17:36 +0300 |
commit | d232acbce01ea73d99f8435e554769059de9613e (patch) | |
tree | cdfa67592dbe0b6edbe4816779b562729899ed29 /src/widgets/dialogs/qfontdialog.cpp | |
parent | 9a198e23d9cc2835fe1dacd411e9437e806c6522 (diff) |
dialogs: use const methods more
to avoid implicit detach
Change-Id: I2d46696a29f2a454452239e0400af2e2de534cbb
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/widgets/dialogs/qfontdialog.cpp')
-rw-r--r-- | src/widgets/dialogs/qfontdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qfontdialog.cpp b/src/widgets/dialogs/qfontdialog.cpp index 855376292b3..edea842def7 100644 --- a/src/widgets/dialogs/qfontdialog.cpp +++ b/src/widgets/dialogs/qfontdialog.cpp @@ -502,7 +502,7 @@ void QFontDialogPrivate::updateFamilies() match_t type = MATCH_NONE; if (bestFamilyType <= MATCH_NONE && familyName2 == QStringLiteral("helvetica")) type = MATCH_LAST_RESORT; - if (bestFamilyType <= MATCH_LAST_RESORT && familyName2 == f.families().first()) + if (bestFamilyType <= MATCH_LAST_RESORT && familyName2 == f.families().constFirst()) type = MATCH_APP; // ### add fallback for writingSystem if (type != MATCH_NONE) { |