[base] Make FT_Renderer_Class always const.

* include/freetype/ftrender.h (FT_Renderer_Class): Make const.
* include/freetype/internal/ftobjs.h: Updated.
This commit is contained in:
Alexei Podtelezhnikov 2025-08-31 07:31:13 -04:00
parent 7b8a770aac
commit 46c6bc8472
2 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@ FT_BEGIN_HEADER
* For @FT_GLYPH_FORMAT_OUTLINE renderers only. This is a pointer to
* its raster's class.
*/
typedef struct FT_Renderer_Class_
typedef const struct FT_Renderer_Class_
{
FT_Module_Class root;

View file

@ -1119,8 +1119,8 @@ FT_BEGIN_HEADER
* The struct will be allocated in the global scope (or the scope where
* the macro is used).
*/
#define FT_DECLARE_RENDERER( class_ ) \
FT_EXPORT_VAR( const FT_Renderer_Class ) class_;
#define FT_DECLARE_RENDERER( class_ ) \
FT_EXPORT_VAR( FT_Renderer_Class ) class_;
#define FT_DEFINE_RENDERER( \
class_, \
@ -1140,7 +1140,7 @@ FT_BEGIN_HEADER
set_mode_, \
raster_class_ ) \
FT_CALLBACK_TABLE_DEF \
const FT_Renderer_Class class_ = \
FT_Renderer_Class class_ = \
{ \
FT_DEFINE_ROOT_MODULE( flags_, \
size_, \