]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/image.c (cr_create_cr_surface_from_image): Add const to variable `key'.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 4 Jun 2019 07:15:35 +0000 (16:15 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 4 Jun 2019 07:15:35 +0000 (16:15 +0900)
src/image.c

index a2e4aa98bf9ab440d9fdb569f5dc574ca40ac222..9b0080130bc328984f9e38bdd13d6b692fef91a8 100644 (file)
@@ -239,7 +239,7 @@ cr_create_cr_surface_from_image (struct frame *f, struct image *img)
                                                  : CAIRO_FORMAT_RGB24),
                                                 pimg->width, pimg->height,
                                                 pimg->bytes_per_line);
-  static cairo_user_data_key_t key;
+  static const cairo_user_data_key_t key;
   cairo_surface_set_user_data (surface, &key, pimg->data, xfree);
   unblock_input ();
   pimg->data = NULL;