summaryrefslogtreecommitdiff
path: root/src/psaux
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2019-06-10 23:09:49 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2019-06-10 23:09:49 -0400
commit78c02bc110b6a605c41487d8c26ae18960df251b (patch)
tree2913d786e1fb28c213f891521a2bc1241b495412 /src/psaux
parentafaf3f1de925ade18d7fc2a202f28922cd5e91ff (diff)
downloadfreetype2-78c02bc110b6a605c41487d8c26ae18960df251b.tar.gz
[type1,type42] Use `const' for string literals.
* include/freetype/internal/psaux.h (PS_Table_FuncsRec): Updated. * include/freetype/internal/t1types.h (T1_EncodingRec): Updated. * src/psaux/psobjs.[ch] (ps_table_add): Updated. * src/type1/t1load.c (T1_Open_Face, parse_encoding): Updated. * src/type42/t42objs.c (T42_Open_Face): Updated. * src/type42/t42parse.c (t42_parse_encoding): Updated. * src/cff/cffobjs.c (cff_face_init): Minor.
Diffstat (limited to 'src/psaux')
-rw-r--r--src/psaux/psobjs.c8
-rw-r--r--src/psaux/psobjs.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index e2168a332..8bfdb9233 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -174,10 +174,10 @@
* reallocation fails.
*/
FT_LOCAL_DEF( FT_Error )
- ps_table_add( PS_Table table,
- FT_Int idx,
- void* object,
- FT_UInt length )
+ ps_table_add( PS_Table table,
+ FT_Int idx,
+ const void* object,
+ FT_UInt length )
{
if ( idx < 0 || idx >= table->max_elems )
{
diff --git a/src/psaux/psobjs.h b/src/psaux/psobjs.h
index 9466a1d07..c44dc450e 100644
--- a/src/psaux/psobjs.h
+++ b/src/psaux/psobjs.h
@@ -53,10 +53,10 @@ FT_BEGIN_HEADER
FT_Memory memory );
FT_LOCAL( FT_Error )
- ps_table_add( PS_Table table,
- FT_Int idx,
- void* object,
- FT_UInt length );
+ ps_table_add( PS_Table table,
+ FT_Int idx,
+ const void* object,
+ FT_UInt length );
FT_LOCAL( void )
ps_table_done( PS_Table table );