diff options
author | Timm Bäder <mail@baedert.org> | 2020-02-04 10:17:15 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-02-05 04:03:43 +0100 |
commit | b75d408d6d0ea103782bd429a1bb80324257148c (patch) | |
tree | 78afa5e076f4d6ee9df36c0d459e17ef3b03b950 /gtk/gtkrenderborder.c | |
parent | 98b42f67408887880c11b355f7fbfa432f5d30ef (diff) | |
download | gtk+-b75d408d6d0ea103782bd429a1bb80324257148c.tar.gz |
css: Make some local variables const
Diffstat (limited to 'gtk/gtkrenderborder.c')
-rw-r--r-- | gtk/gtkrenderborder.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c index b574002203..1396e7833e 100644 --- a/gtk/gtkrenderborder.c +++ b/gtk/gtkrenderborder.c @@ -651,12 +651,10 @@ void gtk_css_style_snapshot_border (GtkCssBoxes *boxes, GtkSnapshot *snapshot) { - GtkCssBorderValues *border; + const GtkCssBorderValues *border = boxes->style->border; GtkBorderImage border_image; float border_width[4]; - border = boxes->style->border; - if (border->base.type == GTK_CSS_BORDER_INITIAL_VALUES) return; |