# HG changeset patch # User John W. Eaton # Date 1218138067 14400 # Node ID 0ff67bd96f8d317144cd97210797e54637bc7776 # Parent 9708674ab85d981bc42290d4ca6abaf7e95d4fc5 graphics.h.in: replace NPOS with std::string::npos diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -9,7 +9,8 @@ lex.l, load-path.cc, load-save.cc, ls-mat-ascii.cc, ls-oct-ascii.cc, oct-stream.cc, octave.cc, variables.cc, ov-fcn-handle.cc, parse.y, pr-output.cc, symtab.cc, sysdep.cc, - utils.cc: Replace all uses of NPOS with std::string::npos. + utils.cc, graphics.h.in: Replace all uses of NPOS with + std::string::npos. * ov.cc (octave_value::idx_type_value): Move definition here. * ov.h: From here. diff --git a/src/graphics.h.in b/src/graphics.h.in --- a/src/graphics.h.in +++ b/src/graphics.h.in @@ -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; } };