Mercurial > hg > octave-jordi
diff liboctave/pathsearch.cc @ 4395:cc6d369355ec
[project @ 2003-04-28 18:14:56 by jwe]
author | jwe |
---|---|
date | Mon, 28 Apr 2003 18:14:56 +0000 |
parents | 13619163e159 |
children | f682f9258271 |
line wrap: on
line diff
--- a/liboctave/pathsearch.cc +++ b/liboctave/pathsearch.cc @@ -128,14 +128,8 @@ octave_kpathsea_initialized = true; } - if (p_default.empty ()) - p = kpse_path_expand (p_orig); - else - { - std::string s = kpse_expand_default (p_orig, p_default); - - p = kpse_path_expand (s); - } + p = kpse_path_expand (p_default.empty () + ? p_orig : kpse_expand_default (p_orig, p_default)); int count = 0; for (kpse_path_iterator pi (p); pi != NPOS; pi++) @@ -146,10 +140,7 @@ kpse_path_iterator pi (p); for (int i = 0; i < count; i++) - { - pv[i] = *pi++; - std::cerr << pv[i] << std::endl; - } + pv[i] = *pi++; initialized = true; }