mark constant as static in QFreetypeFace::addGlyphToPath()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-12-25 16:34:57 +02:00
parent 497c69c1a8
commit f5c6bc5f97

View file

@ -255,7 +255,7 @@ static void scaleOutline(FT_Face face, FT_GlyphSlot g, FT_Fixed x_scale, FT_Fixe
void QFreetypeFace::addGlyphToPath(FT_Face face, FT_GlyphSlot g, const QFixedPoint &point, QPainterPath *path, FT_Fixed x_scale, FT_Fixed y_scale)
{
const qreal factor = 1/64.;
static const qreal factor = (1.0 / 64.0);
scaleOutline(face, g, x_scale, y_scale);
QPointF cp = point.toPointF();