evas: Mark native_surface as const
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 8 Aug 2016 06:15:54 +0000 (15:15 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 8 Aug 2016 06:16:53 +0000 (15:16 +0900)
The void* argument should be considered read-only.
This doesn't change anything, really.

src/modules/evas/engines/gl_x11/evas_engine.c

index f5d783d..ddf1be6 100644 (file)
@@ -2366,7 +2366,7 @@ static void *
 eng_image_native_set(void *data, void *image, void *native)
 {
   Render_Engine *re = (Render_Engine *)data;
-  Evas_Native_Surface *ns = native;
+  const Evas_Native_Surface *ns = native;
   Evas_GL_Image *im = image, *im2 = NULL;
   Visual *vis = NULL;
   Pixmap pm = 0;