summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfont_p.h
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2020-07-04 05:28:39 +0200
committerDimitrios Apostolou <jimis@qt.io>2020-07-16 01:04:44 +0200
commit3da9cff84599c613a440e320e649dd957e89ecfb (patch)
tree26427901038b1a83e3f10ca7c147bab9fb366cc5 /src/gui/text/qfont_p.h
parent273be0b9e61246e932a776b35de29c6bf6d85b41 (diff)
Avoid warnings regarding bit-field signedness
Up to (including) C++11, integral bitfields of unspecified signedness have implementation dependent signedness. Detected by LGTM.com static analyzer. Pick-to: 5.15 Change-Id: Ibaa0fdc6e443495a3cd40330c4573c9cc6ccdf5b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/text/qfont_p.h')
-rw-r--r--src/gui/text/qfont_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfont_p.h b/src/gui/text/qfont_p.h
index 5d8f0daacd..d2d240b134 100644
--- a/src/gui/text/qfont_p.h
+++ b/src/gui/text/qfont_p.h
@@ -97,7 +97,7 @@ struct QFontDef
uint hintingPreference : 2;
uint ignorePitch : 1;
uint fixedPitchComputed : 1; // for Mac OS X only
- int reserved : 14; // for future extensions
+ uint reserved : 14; // for future extensions
bool exactMatch(const QFontDef &other) const;
bool operator==(const QFontDef &other) const