diff options
author | Timm Bäder <mail@baedert.org> | 2019-08-17 18:55:35 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2019-09-09 17:36:23 +0200 |
commit | 6837e80d14bc0bf920b51b40f64028165c4d1a43 (patch) | |
tree | 73282d6dc1ee799779ba3f6e61faf17b2a2ea0c9 /gtk/gtkcssimageicontheme.c | |
parent | 4f3e65e74584b108faa75afbe3c49b11eac62c85 (diff) | |
download | gtk+-6837e80d14bc0bf920b51b40f64028165c4d1a43.tar.gz |
css: Avoid more type checks in hot paths
Diffstat (limited to 'gtk/gtkcssimageicontheme.c')
-rw-r--r-- | gtk/gtkcssimageicontheme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssimageicontheme.c b/gtk/gtkcssimageicontheme.c index 5a194862b0..582dbfec30 100644 --- a/gtk/gtkcssimageicontheme.c +++ b/gtk/gtkcssimageicontheme.c @@ -187,8 +187,8 @@ static gboolean gtk_css_image_icon_theme_equal (GtkCssImage *image1, GtkCssImage *image2) { - GtkCssImageIconTheme *icon_theme1 = GTK_CSS_IMAGE_ICON_THEME (image1); - GtkCssImageIconTheme *icon_theme2 = GTK_CSS_IMAGE_ICON_THEME (image2); + GtkCssImageIconTheme *icon_theme1 = (GtkCssImageIconTheme *) image1; + GtkCssImageIconTheme *icon_theme2 = (GtkCssImageIconTheme *) image2; return g_str_equal (icon_theme1->name, icon_theme2->name); } |