mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 00:50:38 +00:00
(-_generateGlyphsForRun:at:): Use a properly typed function pointer for characterIsMember.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19290 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6b78af5ade
commit
cfe33cfa9e
2 changed files with 8 additions and 1 deletions
|
@ -2723,7 +2723,9 @@ for the backends to use it */
|
|||
glyph_t *g;
|
||||
|
||||
NSCharacterSet *cs = [NSCharacterSet controlCharacterSet];
|
||||
IMP characterIsMember = [cs methodForSelector: @selector(characterIsMember:)];
|
||||
BOOL (*characterIsMember)(id, SEL, unichar)
|
||||
= (BOOL(*)(id, SEL, unichar)) [cs methodForSelector:
|
||||
@selector(characterIsMember:)];
|
||||
|
||||
run->head.glyph_length = c;
|
||||
run->glyphs = malloc(sizeof(glyph_t) * c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue