Mercurial > octave
diff liboctave/oct-env.cc @ 8021:85184151822e
fix typo in NPOS change
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Aug 2008 15:31:17 -0400 |
parents | 0ef13e15319b |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/liboctave/oct-env.cc Thu Aug 07 15:17:40 2008 -0400 +++ b/liboctave/oct-env.cc Thu Aug 07 15:31:17 2008 -0400 @@ -221,7 +221,7 @@ size_t pos = program_invocation_name.find_last_of (file_ops::dir_sep_chars ()); - program_name = (pos == std::string:npos) + program_name = (pos == std::string::npos) ? program_invocation_name : program_invocation_name.substr (pos+1); } @@ -305,7 +305,7 @@ size_t pos = s.find_last_of (file_ops::dir_sep_chars ()); - if (pos == std::string:npos) + if (pos == std::string::npos) return s; else return s.substr (pos+1); @@ -370,7 +370,7 @@ size_t tmp = s.find_first_of (file_ops::dir_sep_chars (), i); - if (tmp == std::string:npos) + if (tmp == std::string::npos) { current_dir.append (s, i, tmp-i); break;