mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-01-04 04:30:13 +01:00
[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:
parent
7b8a770aac
commit
46c6bc8472
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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_, \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue