diff src/graphics.h.in @ 8023:0ff67bd96f8d

graphics.h.in: replace NPOS with std::string::npos
author John W. Eaton <jwe@octave.org>
date Thu, 07 Aug 2008 15:41:07 -0400
parents 9cd3ee5298a0
children 961d4c52ffae
line wrap: on
line diff
--- a/src/graphics.h.in	Thu Aug 07 15:31:49 2008 -0400
+++ b/src/graphics.h.in	Thu Aug 07 15:41:07 2008 -0400
@@ -61,7 +61,7 @@
   operator std::string (void) const { return *this; }
 
   // Case-insensitive comparison.
-  bool compare (const std::string& s, size_t limit = NPOS) const
+  bool compare (const std::string& s, size_t limit = std::string::npos) const
   {
     const_iterator p1 = begin ();
     const_iterator p2 = s.begin ();
@@ -77,7 +77,7 @@
 	*p2++;
       }
 
-    return (limit == NPOS) ? size () == s.size () : k == limit;
+    return (limit == std::string::npos) ? size () == s.size () : k == limit;
   }
 };