diff src/defaults.cc @ 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 a1dbe9d80eee
children 4d13a7a2f6ab
line wrap: on
line diff
--- a/src/defaults.cc
+++ b/src/defaults.cc
@@ -113,8 +113,9 @@
 	retval.replace (0, len, Voctave_home);
     }
 
-  if (file_ops::dir_sep_char != '/')
-    std::replace (retval.begin (), retval.end (), '/', file_ops::dir_sep_char);
+  if (file_ops::dir_sep_char () != '/')
+    std::replace (retval.begin (), retval.end (), '/',
+		  file_ops::dir_sep_char ());
 
   return retval;
 }