diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-07-05 16:19:55 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-07-21 17:14:08 +0200 |
commit | 030923c0def8b4c08fef2e1b865f30dd7287a907 (patch) | |
tree | fac4996070ff972dc15f0e3e0998bd54b0e81e24 /src/gui/text | |
parent | c1086e1fa74d4c6a39c769390830acad9ac8bf46 (diff) |
Add -Wshorten-64-to-32 to headersclean
Fix existing warnings by casting to the appropriate type.
Change-Id: Ic44d2a71e1a2e508199dbb46bea7a19e183ec42c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qrawfont.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qrawfont.h b/src/gui/text/qrawfont.h index 8da39c24f8..ca202d897f 100644 --- a/src/gui/text/qrawfont.h +++ b/src/gui/text/qrawfont.h @@ -127,7 +127,7 @@ inline QList<QPointF> QRawFont::advancesForGlyphIndexes(const QList<quint32> &gl QRawFont::LayoutFlags layoutFlags) const { QList<QPointF> advances(glyphIndexes.size()); - if (advancesForGlyphIndexes(glyphIndexes.constData(), advances.data(), glyphIndexes.size(), layoutFlags)) + if (advancesForGlyphIndexes(glyphIndexes.constData(), advances.data(), int(glyphIndexes.size()), layoutFlags)) return advances; return QList<QPointF>(); } |