diff src/parse.y @ 8007:a2ab20ba78f7

make file_ops a proper singleton class
author John W. Eaton <jwe@octave.org>
date Mon, 04 Aug 2008 23:44:50 -0400
parents ff9e7873f8ea
children 30629059b72d
line wrap: on
line diff
--- a/src/parse.y	Mon Aug 04 22:32:47 2008 -0400
+++ b/src/parse.y	Mon Aug 04 23:44:50 2008 -0400
@@ -2484,7 +2484,7 @@
 
 	  std::string nm = curr_fcn_file_name;
 
-	  size_t pos = nm.find_last_of (file_ops::dir_sep_chars);
+	  size_t pos = nm.find_last_of (file_ops::dir_sep_chars ());
 
 	  if (pos != NPOS)
 	    nm = curr_fcn_file_name.substr (pos+1);
@@ -3377,7 +3377,7 @@
 		  if (! fname.empty ())
 		    {
 		      fname = octave_env::make_absolute (fname, octave_env::getcwd ());
-		      fname = fname.substr (0, fname.find_last_of (file_ops::dir_sep_str) + 1);
+		      fname = fname.substr (0, fname.find_last_of (file_ops::dir_sep_str ()) + 1);
 
 		      file_stat fs (fname + nm);
 
@@ -3514,7 +3514,7 @@
     retval = fname;
   else
     {
-      size_t dpos = fname.rfind (file_ops::dir_sep_char);
+      size_t dpos = fname.rfind (file_ops::dir_sep_char ());
       size_t epos = fname.rfind ('.');
 
       if (epos <= dpos)