diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-29 11:28:13 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-05-02 21:32:05 +0200 |
commit | 8d8940243541e67df8f8683e473e205416eedff6 (patch) | |
tree | f7aaacb9fbe891ae580e7ad1c683aa0e5df35f99 /src/gui/text/qtextformat_p.h | |
parent | 8292e3c59027e28dd6be5d942ea337c92deb230e (diff) |
Fix warnings about size_t to uint truncation
Use size_t for the internal hashing in QTextFormat to be
in line with QHash.
Change-Id: I210ab1622225f8e435d22e27ee7f730a4522ebe7
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/gui/text/qtextformat_p.h')
-rw-r--r-- | src/gui/text/qtextformat_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextformat_p.h b/src/gui/text/qtextformat_p.h index 001a243e84..c9a3c8f8ee 100644 --- a/src/gui/text/qtextformat_p.h +++ b/src/gui/text/qtextformat_p.h @@ -96,7 +96,7 @@ public: FormatVector formats; QVector<qint32> objFormats; - QMultiHash<uint,int> hashes; + QMultiHash<size_t,int> hashes; inline QFont defaultFont() const { return defaultFnt; } void setDefaultFont(const QFont &f); |