Mercurial > hg > octave-nkf
diff src/octave.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | fd0a3ac60b0e |
children | 6e9f100c0d61 |
line wrap: on
line diff
--- a/src/octave.cc +++ b/src/octave.cc @@ -113,7 +113,7 @@ static bool verbose_flag = false; // Usage message -static const char *usage_string = +static const char *usage_string = "octave [-HVdfhiqvx] [--debug] [--echo-commands] [--eval CODE]\n\ [--exec-path path] [--help] [--image-path path] [--info-file file]\n\ [--info-program prog] [--interactive] [--line-editing]\n\ @@ -484,7 +484,7 @@ octave_program_invocation_name = curr_fcn_file_name; size_t pos = curr_fcn_file_name.find_last_of (file_ops::dir_sep_chars ()); - + std::string tmp = (pos != std::string::npos) ? curr_fcn_file_name.substr (pos+1) : curr_fcn_file_name;