[eog] Constify transform lookup table



commit 2fc271e3b0c918ee07608efc96bc9e7890be56be
Author: Felix Riemann <friemann gnome org>
Date:   Thu May 13 15:08:46 2010 +0200

    Constify transform lookup table

 src/eog-image.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index 8203b65..57ea118 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -756,7 +756,7 @@ eog_image_set_orientation (EogImage *img)
 static void
 eog_image_real_autorotate (EogImage *img)
 {
-	static EogTransformType lookup[8] = {EOG_TRANSFORM_NONE,
+	static const EogTransformType lookup[8] = {EOG_TRANSFORM_NONE,
 					     EOG_TRANSFORM_FLIP_HORIZONTAL,
 					     EOG_TRANSFORM_ROT_180,
 					     EOG_TRANSFORM_FLIP_VERTICAL,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]