From b9014939ce840f0ebe8f44ec99e32c1d3254e699 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 22 Mar 2024 14:54:09 +0200 Subject: [PATCH] const-ify QFreetypeFace::addGlyphToPath() argument Signed-off-by: Ivailo Monev --- src/gui/text/qfontengine_ft.cpp | 2 +- src/gui/text/qfontengine_ft_p.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);