Mercurial > octave
diff libinterp/corefcn/ft-text-renderer.cc @ 23447:db1fdf4384dd
maint: Use convention "static_cast<void *>" for casting of pointers.
* Backend.cc, BaseControl.cc, ButtonControl.cc, ButtonGroup.cc, Canvas.cc,
Container.cc, ContextMenu.cc, Figure.cc, ListBoxControl.cc, Menu.cc,
MouseModeActionGroup.cc, Object.cc, Object.h, Panel.cc, RadioButtonControl.cc,
ToggleButtonControl.cc, ToolBar.cc, ToolBarButton.cc, annotation-dialog.cc,
file-editor-tab.cc, main-window.cc, webinfo.cc, data.cc, ft-text-renderer.cc,
graphics.in.h, zfstream.h, __init_fltk__.cc, __osmesa_print__.cc, gzip.cc,
ov-java.cc, bp-table.cc, oct-time.cc, lo-utils.cc, oct-base64.cc,
url-transfer.cc:
Use convention "static_cast<void *>" for casting of pointers.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 27 Apr 2017 10:04:31 -0700 |
parents | 092078913d54 |
children | 21baad6b35c4 |
line wrap: on
line diff
--- a/libinterp/corefcn/ft-text-renderer.cc Thu Apr 27 09:48:57 2017 -0700 +++ b/libinterp/corefcn/ft-text-renderer.cc Thu Apr 27 10:04:31 2017 -0700 @@ -228,7 +228,7 @@ FcPattern *pat = FcPatternCreate (); FcPatternAddString (pat, FC_FAMILY, - (reinterpret_cast<const FcChar8*> + (reinterpret_cast<const FcChar8 *> (name == "*" ? "sans" : name.c_str ()))); FcPatternAddInteger (pat, FC_WEIGHT, fc_weight); @@ -250,7 +250,7 @@ unsigned char *tmp; FcPatternGetString (match, FC_FILE, 0, &tmp); - file = reinterpret_cast<char*> (tmp); + file = reinterpret_cast<char *> (tmp); } else ::warning ("could not match any font: %s-%s-%s-%g", @@ -302,7 +302,7 @@ { if (face->generic.data) { - ft_key *pkey = reinterpret_cast<ft_key*> (face->generic.data); + ft_key *pkey = reinterpret_cast<ft_key *> (face->generic.data); cache.erase (*pkey); delete pkey;