comparison src/pr-output.cc @ 8019:0ef13e15319b

replace NPOS with std::string::npos
author John W. Eaton <jwe@octave.org>
date Thu, 07 Aug 2008 15:15:33 -0400
parents 63dbb85452cc
children 85184151822e
comparison
equal deleted inserted replaced
8018:8487847eb092 8019:0ef13e15319b
2800 2800
2801 while (n < s_len) 2801 while (n < s_len)
2802 { 2802 {
2803 size_t m = s.find ('\n', n); 2803 size_t m = s.find ('\n', n);
2804 2804
2805 if (m == NPOS) 2805 if (m == std::string:npos)
2806 { 2806 {
2807 lst.push_back (s.substr (n)); 2807 lst.push_back (s.substr (n));
2808 break; 2808 break;
2809 } 2809 }
2810 else 2810 else