Mercurial > hg > octave-lojdl
changeset 10192:fc95c80058d8
don't make prog_args member functions const
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Jan 2010 16:50:43 -0500 |
parents | a552859b009a |
children | 1a4074e277fe |
files | liboctave/ChangeLog liboctave/prog-args.cc liboctave/prog-args.h |
diffstat | 3 files changed, 14 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,6 +1,13 @@ 2010-01-22 John W. Eaton <jwe@octave.org> - * prog-args.h (prog_args::get_option): Rename from getopt. Now const. + * prog-args.h, prog-args.cc (prog_args::get_option, + prog_args::option_argument, prog_args::option_index): + Don't declare const. + +2010-01-22 John W. Eaton <jwe@octave.org> + + * prog-args.h, prog-args.cc (prog_args::get_option): + Rename from getopt. Now const. (prog_args::option_argument): Rename from optarg. Now const. (prog_args::option_index): Rename from optind. Now const.
--- a/liboctave/prog-args.cc +++ b/liboctave/prog-args.cc @@ -29,7 +29,7 @@ #include "prog-args.h" int -prog_args::get_option (void) const +prog_args::get_option (void) { if (long_opts) return ::octave_getopt_long @@ -40,13 +40,13 @@ } const char * -prog_args::option_argument (void) const +prog_args::option_argument (void) { return ::optarg; } int -prog_args::option_index (void) const +prog_args::option_index (void) { return ::optind; }
--- a/liboctave/prog-args.h +++ b/liboctave/prog-args.h @@ -55,11 +55,11 @@ ~prog_args (void) { } - int get_option (void) const; + int get_option (void); - const char *option_argument (void) const; + const char *option_argument (void); - int option_index (void) const; + int option_index (void); private: