From: pjrm Date: Sun, 4 May 2008 12:24:43 +0000 (+0000) Subject: noop: Address string-literal-to-char* warning. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f0c628bf4aec4730460e5faf25118cc464175ed3;p=inkscape.git noop: Address string-literal-to-char* warning. --- 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) {