diff src/load-path.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 a14bdf90be55
line wrap: on
line diff
--- a/src/load-path.cc
+++ b/src/load-path.cc
@@ -130,7 +130,7 @@
 
 		  size_t pos = fname.rfind ('.');
 
-		  if (pos != std::string:npos)
+		  if (pos != std::string::npos)
 		    {
 		      std::string ext = fname.substr (pos);
 
@@ -178,7 +178,7 @@
 
 	  size_t pos = fname.rfind ('.');
 
-	  if (pos != std::string:npos)
+	  if (pos != std::string::npos)
 	    {
 	      base = fname.substr (0, pos);
 	      ext = fname.substr (pos);
@@ -306,7 +306,7 @@
 
       size_t pos = fname.rfind ('.');
 
-      if (pos != std::string:npos)
+      if (pos != std::string::npos)
 	{
 	  base = fname.substr (0, pos);
 	  ext = fname.substr (pos);
@@ -477,7 +477,7 @@
 
   size_t len = p.length ();
 
-  while (end != std::string:npos)
+  while (end != std::string::npos)
     {
       std::string elt = p.substr (beg, end-beg);
 
@@ -622,7 +622,7 @@
 
       size_t pos = fname.rfind ('.');
 
-      if (pos != std::string:npos)
+      if (pos != std::string::npos)
 	{
 	  base = fname.substr (0, pos);
 	  ext = fname.substr (pos);
@@ -1007,7 +1007,7 @@
 {
   std::string retval;
 
-  if (file.find_first_of (file_ops::dir_sep_chars ()) != std::string:npos)
+  if (file.find_first_of (file_ops::dir_sep_chars ()) != std::string::npos)
     {
       if (octave_env::absolute_pathname (file)
 	  || octave_env::rooted_relative_pathname (file))
@@ -1445,7 +1445,7 @@
 
       size_t pos = fname.rfind ('.');
 
-      if (pos != std::string:npos)
+      if (pos != std::string::npos)
 	{
 	  base = fname.substr (0, pos);
 	  ext = fname.substr (pos);