gui: Fix const-ness warning in create_lines_tree_view().
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 2 Apr 2011 04:12:54 +0000 (21:12 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 3 May 2011 14:52:48 +0000 (07:52 -0700)
This fixes this warning from GCC:

src/ui/gui/text-data-import-dialog.c: In function ‘create_lines_tree_view’:
src/ui/gui/text-data-import-dialog.c:875: warning: initialization
discards qualifiers from pointer target type

src/ui/gui/text-data-import-dialog.c

index 8579ccc94958abcbe8d3aac33800c8eca1de96f4..6cc4bee3ca5e88bdd75105577ef7317e32e35e47 100644 (file)
@@ -872,7 +872,7 @@ create_lines_tree_view (GtkContainer *parent, struct import_assistant *ia)
   size_t max_line_length;
   gint content_width, header_width;
   size_t i;
-  gchar *title = _("Text");
+  const gchar *title = _("Text");
 
   make_tree_view (ia, 0, &tree_view);