diff options
Diffstat (limited to 'src/extras/text/qdistancefieldglyphcache.cpp')
-rw-r--r-- | src/extras/text/qdistancefieldglyphcache.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/extras/text/qdistancefieldglyphcache.cpp b/src/extras/text/qdistancefieldglyphcache.cpp index d367410c8..6859f74ac 100644 --- a/src/extras/text/qdistancefieldglyphcache.cpp +++ b/src/extras/text/qdistancefieldglyphcache.cpp @@ -63,12 +63,11 @@ namespace Qt3DExtras { class StoredGlyph { public: StoredGlyph() = default; - StoredGlyph(const StoredGlyph &) = default; StoredGlyph(const QRawFont &font, quint32 glyph, bool doubleResolution); - int refCount() const { return m_ref; } + int refCount() const { return int(m_ref); } void ref() { ++m_ref; } - int deref() { return m_ref = std::max(m_ref - 1, (quint32) 0); } + int deref() { m_ref = std::max(m_ref - 1, quint32(0)); return int(m_ref); } bool addToTextureAtlas(QTextureAtlas *atlas); void removeFromTextureAtlas(); |