freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] Mark FT_Renderer_Class::raster_class as


From: Ben Wagner (@bungeman)
Subject: [Git][freetype/freetype][master] Mark FT_Renderer_Class::raster_class as pointer to const
Date: Mon, 05 Jun 2023 17:01:04 +0000

Ben Wagner pushed to branch master at FreeType / FreeType

Commits:

  • 4e1c0e8f
    by Ben Wagner at 2023-06-05T12:06:24-04:00
    Mark FT_Renderer_Class::raster_class as pointer to const
    
    The `FT_DEFINE_RASTER_FUNCS` macro declares a `const FT_Raster_Funcs`.
    The address of the definition is taken and assigned to
    `FT_Renderer_Class::raster_class` which is currently `FT_Raster_Funcs*`.
    Until recently the `const` was cast away and with the removal of the
    cast there are now warnings about dropping this `const`. Instead of
    adding back the casts, make `FT_Renderer_Class::raster_class` a pointer
    to const, as is done with pointers in other interfaces.
    
    * include/freetype/ftrender.h (FT_Renderer_Class_): mark `raster_class`
    as const.
    

1 changed file:

Changes:

  • include/freetype/ftrender.h
    ... ... @@ -158,7 +158,7 @@ FT_BEGIN_HEADER
    158 158
         FT_Renderer_GetCBoxFunc    get_glyph_cbox;
    
    159 159
         FT_Renderer_SetModeFunc    set_mode;
    
    160 160
     
    
    161
    -    FT_Raster_Funcs*           raster_class;
    
    161
    +    const FT_Raster_Funcs*     raster_class;
    
    162 162
     
    
    163 163
       } FT_Renderer_Class;
    
    164 164
     
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]