From e66afd23b43795eeb301a604cd312801a61c349e Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Fri, 4 Aug 2023 10:01:35 +0200 Subject: [PATCH] function can be const --- src/Atlas.cpp | 2 +- src/Atlas.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Atlas.cpp b/src/Atlas.cpp index 23627da..b2c3e25 100644 --- a/src/Atlas.cpp +++ b/src/Atlas.cpp @@ -321,7 +321,7 @@ bool Atlas::getGlyphGeometryPair(const unsigned char character, const FontVariation variation, GlyphGeometry & a, GlyphGeometry & b, - float & mix){ + float & mix) const { float smallestDistanceDown = -1 * FLT_MAX; float smallestDistanceUp = FLT_MAX; int closestIndexDown = 0; diff --git a/src/Atlas.h b/src/Atlas.h index b529eca..5f27a87 100644 --- a/src/Atlas.h +++ b/src/Atlas.h @@ -98,7 +98,7 @@ class Atlas { const FontVariation variation, GlyphGeometry & a, GlyphGeometry & b, - float & mix); + float & mix) const; //const GlyphGeometry & getGlyphGeometry(GlyphVariationKey key); const FontGeometry & getFontGeometry();