Mercurial > hg > octave-lyh
diff src/oct-hist.cc @ 7272:05ee52d7fad6
[project @ 2007-12-10 07:06:00 by jwe]
author | jwe |
---|---|
date | Mon, 10 Dec 2007 07:06:01 +0000 |
parents | e8a3e3e33490 |
children | 5b4d278ec828 |
line wrap: on
line diff
--- a/src/oct-hist.cc +++ b/src/oct-hist.cc @@ -87,19 +87,8 @@ file = env_file; if (file.empty ()) - { - std::string home_dir = octave_env::get_home_directory (); - - if (! home_dir.empty ()) - { - file = home_dir; - if (! file_ops::is_dir_sep (file[file.length()-1])) - file += file_ops::dir_sep_char; - file.append (".octave_hist"); - } - else - file = ".octave_hist"; - } + file = file_ops::concat (octave_env::get_home_directory (), + ".octave_hist"); return file; }