diff --git a/src/gui/text/qfontengine_ft.cpp b/src/gui/text/qfontengine_ft.cpp index 492207cd9..45a79bdf6 100644 --- a/src/gui/text/qfontengine_ft.cpp +++ b/src/gui/text/qfontengine_ft.cpp @@ -77,7 +77,7 @@ QFreetypeFace::~QFreetypeFace() FT_Done_FreeType(library); } -void QFreetypeFace::addGlyphToPath(FT_Outline outline, const QFixedPoint &point, QPainterPath *path) +void QFreetypeFace::addGlyphToPath(const FT_Outline &outline, const QFixedPoint &point, QPainterPath *path) { static const qreal factor = (1.0 / 64.0); diff --git a/src/gui/text/qfontengine_ft_p.h b/src/gui/text/qfontengine_ft_p.h index 564ac0523..a71cff552 100644 --- a/src/gui/text/qfontengine_ft_p.h +++ b/src/gui/text/qfontengine_ft_p.h @@ -71,7 +71,7 @@ public: FT_Face face; FT_Library library; - static void addGlyphToPath(FT_Outline outline, const QFixedPoint &point, QPainterPath *path); + static void addGlyphToPath(const FT_Outline &outline, const QFixedPoint &point, QPainterPath *path); private: Q_DISABLE_COPY(QFreetypeFace);