# HG changeset patch # User jwe # Date 1041623550 0 # Node ID fd406afe8a10ef58b39eec5eb29a8b5bf055789c # Parent be631c1720eac5dcb83463acb91456ffac9888c1 [project @ 2003-01-03 19:52:30 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2003-01-03 John W. Eaton + * input.cc (initialize_command_input): Use const for + initialization of char * from literal string. + * pt-plot.cc (subplot::extract_plot_data): Call single_subsref, not subsref. * ov.h, ov.cc (single_subsref (const std::string&, const diff --git a/src/input.cc b/src/input.cc --- a/src/input.cc +++ b/src/input.cc @@ -489,7 +489,7 @@ // XX FIXME XXX -- this needs to include a comma too, but that // causes trouble for the new struct element completion code. - static char *s = "\t\n !\"\'*+-/:;<=>(){}[\\]^`~"; + static const char *s = "\t\n !\"\'*+-/:;<=>(){}[\\]^`~"; command_editor::set_basic_word_break_characters (s);