[libegg/spread-table-dnd: 60/78] Declare a variable as const to silence a warning
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libegg/spread-table-dnd: 60/78] Declare a variable as const to silence a warning
- Date: Sun, 10 Apr 2011 07:02:18 +0000 (UTC)
commit f7e94aff7c8e7febb01cbe93665e95a5bf064a41
Author: David King <davidk openismus com>
Date: Wed Mar 23 15:08:21 2011 +0100
Declare a variable as const to silence a warning
libegg/dock/egg-dock-item.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libegg/dock/egg-dock-item.c b/libegg/dock/egg-dock-item.c
index a964424..3990b6a 100644
--- a/libegg/dock/egg-dock-item.c
+++ b/libegg/dock/egg-dock-item.c
@@ -1200,7 +1200,7 @@ egg_dock_item_dock (EggDockObject *object,
{
GEnumClass *enum_class = G_ENUM_CLASS (g_type_class_ref (EGG_TYPE_DOCK_PLACEMENT));
GEnumValue *enum_value = g_enum_get_value (enum_class, position);
- gchar *name = enum_value ? enum_value->value_name : NULL;
+ const gchar *name = enum_value ? enum_value->value_name : NULL;
g_warning (_("Unsupported docking strategy %s in dock object of type %s"),
name, G_OBJECT_TYPE_NAME (object));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]