const-ify QFreetypeFace::addGlyphToPath() argument

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-22 14:54:09 +02:00
parent 9a26963695
commit b9014939ce
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);