From f0c628bf4aec4730460e5faf25118cc464175ed3 Mon Sep 17 00:00:00 2001 From: pjrm Date: Sun, 4 May 2008 12:24:43 +0000 Subject: [PATCH] noop: Address string-literal-to-char* warning. --- src/dialogs/export.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index 6f7bf2511..b79a4150f 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -200,7 +200,7 @@ sp_export_dialog_delete ( GtkObject */*object*/, GdkEvent */*event*/, gpointer / */ static void -sp_export_spinbutton_new ( gchar *key, float val, float min, float max, +sp_export_spinbutton_new ( gchar const *key, float val, float min, float max, float step, float page, GtkWidget *us, GtkWidget *t, int x, int y, const gchar *ll, const gchar *lr, @@ -208,7 +208,7 @@ sp_export_spinbutton_new ( gchar *key, float val, float min, float max, GCallback cb, GtkWidget *dlg ) { GtkObject *a = gtk_adjustment_new (val, min, max, step, page, page); - gtk_object_set_data (a, "key", key); + gtk_object_set_data (a, "key", const_cast(key)); gtk_object_set_data (GTK_OBJECT (dlg), (const gchar *)key, a); if (us) { -- 2.30.2