summaryrefslogtreecommitdiff
path: root/gtk/gtkrenderborder.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-02-04 10:17:15 +0100
committerBenjamin Otte <otte@redhat.com>2020-02-05 04:03:43 +0100
commitb75d408d6d0ea103782bd429a1bb80324257148c (patch)
tree78afa5e076f4d6ee9df36c0d459e17ef3b03b950 /gtk/gtkrenderborder.c
parent98b42f67408887880c11b355f7fbfa432f5d30ef (diff)
downloadgtk+-b75d408d6d0ea103782bd429a1bb80324257148c.tar.gz
css: Make some local variables const
Diffstat (limited to 'gtk/gtkrenderborder.c')
-rw-r--r--gtk/gtkrenderborder.c4
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;