Remove redundant GdkRGBA memcpy
[geeqie.git] / src / view-file / view-file-list.cc
index bcd1145..b802a3b 100644 (file)
@@ -1964,7 +1964,6 @@ static void cell_renderer_height_override(GtkCellRenderer *renderer)
 static GdkRGBA *vflist_listview_color_shifted(GtkWidget *widget)
 {
        static GdkRGBA color;
-       static GdkRGBA color_style;
        static GtkWidget *done = nullptr;
 
        if (done != widget)
@@ -1972,9 +1971,8 @@ static GdkRGBA *vflist_listview_color_shifted(GtkWidget *widget)
                GtkStyle *style;
 
                style = gtk_widget_get_style(widget);
-               convert_gdkcolor_to_gdkrgba(&style->base[GTK_STATE_NORMAL], &color_style);
+               convert_gdkcolor_to_gdkrgba(&style->base[GTK_STATE_NORMAL], &color);
 
-               memcpy(&color, &color_style, sizeof(color));
                shift_color(&color, -1, 0);
                done = widget;
                }