Mercurial > hg > octave-lyh
changeset 1808:72b1c55692a2
[project @ 1996-01-29 07:08:33 by jwe]
author | jwe |
---|---|
date | Mon, 29 Jan 1996 07:10:45 +0000 |
parents | b16eeb7d68d6 |
children | 4100e0cb00a1 |
files | src/help.cc src/variables.cc |
diffstat | 2 files changed, 12 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/help.cc +++ b/src/help.cc @@ -355,9 +355,11 @@ { int count = 0; string_vector symbols = names (list, count); - output_buf << "\n*** " << desc << ":\n\n"; - if (symbols.length () > 0) - list_in_columns (output_buf, symbols); + if (! symbols.empty ()) + { + output_buf << "\n*** " << desc << ":\n\n"; + symbols.list_in_columns (output_buf); + } } static string @@ -437,9 +439,11 @@ display_symtab_names (ostrstream& output_buf, const string_vector& names, int /* count */, const string& desc) { - output_buf << "\n*** " << desc << ":\n\n"; - if (names.length () > 0) - list_in_columns (output_buf, names); + if (! names.empty ()) + { + output_buf << "\n*** " << desc << ":\n\n"; + names.list_in_columns (output_buf); + } } static void @@ -497,7 +501,7 @@ << make_absolute (dirs[i], the_current_working_directory) << ":\n\n"; - list_in_columns (output_buf, names); + names.list_in_columns (output_buf); } }