summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontsubset_p.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-16 16:13:40 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-19 16:51:29 +0200
commit8ff197cd111a2fef784399f46bf7b7917d1b3524 (patch)
tree50974133742626bfaae6ce0b392beaf0fffe254d /src/gui/text/qfontsubset_p.h
parentc554f9ef0a8af91597d367c8fb69568def871c32 (diff)
QPdf: consolidate usage of uint
Objects in QPdf are indexed by uint. In a couple of places (incl. QFontSubset) int were used instead, causing sign conversion warnings (turned into errors by -Werror). Use uint instead. Change-Id: Ie0436c8aff3b67d8ef95a5f26fc16403e7e02bd1 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/text/qfontsubset_p.h')
-rw-r--r--src/gui/text/qfontsubset_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/text/qfontsubset_p.h b/src/gui/text/qfontsubset_p.h
index 1a3b392601..c8ff94da78 100644
--- a/src/gui/text/qfontsubset_p.h
+++ b/src/gui/text/qfontsubset_p.h
@@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE
class QFontSubset
{
public:
- explicit QFontSubset(QFontEngine *fe, int obj_id = 0)
+ explicit QFontSubset(QFontEngine *fe, uint obj_id = 0)
: object_id(obj_id), noEmbed(false), fontEngine(fe), downloaded_glyphs(0), standard_font(false)
{
fontEngine->ref.ref();
@@ -81,12 +81,12 @@ public:
static QByteArray glyphName(unsigned short unicode, bool symbol);
- int addGlyph(int index);
+ int addGlyph(uint index);
#endif
- const int object_id;
+ const uint object_id;
bool noEmbed;
QFontEngine *fontEngine;
- QList<int> glyph_indices;
+ QList<uint> glyph_indices;
mutable int downloaded_glyphs;
mutable bool standard_font;
int nGlyphs() const { return glyph_indices.size(); }