]> granicus.if.org Git - graphviz/commitdiff
pango_textlayout: [nfc] remove an unnecessary 'void*' cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 28 Feb 2022 02:48:29 +0000 (18:48 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Mar 2022 19:17:36 +0000 (11:17 -0800)
plugin/pango/gvtextlayout_pango.c

index 5ac08bfac910ceba792dcf8f63dcca1813623e55..3d54670c132371bc97d1a42794e09c4e3431ca23 100644 (file)
@@ -246,7 +246,7 @@ static bool pango_textlayout(textspan_t * span, char **fontpath)
 #endif
 
     layout = pango_layout_new (context);
-    span->layout = (void *)layout;    /* layout free with textspan - see labels.c */
+    span->layout = layout;    /* layout free with textspan - see labels.c */
     span->free_layout = pango_free_layout;    /* function for freeing pango layout */
 
     pango_layout_set_text (layout, text, -1);