Changeset 59170 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- May 11, 2010, 1:38:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSString.cpp
r59161 r59170 108 108 { 109 109 if (!isRope()) { 110 size_tmatchPosition = m_value.find(character);111 if (matchPosition == notFound)110 unsigned matchPosition = m_value.find(character); 111 if (matchPosition == UString::NotFound) 112 112 return JSValue(this); 113 113 return jsString(exec, m_value.substr(0, matchPosition), replacement, m_value.substr(matchPosition + 1)); … … 119 119 size_t fiberCount = 0; 120 120 UStringImpl* matchString = 0; 121 size_t matchPosition = notFound;121 int matchPosition = -1; 122 122 for (RopeIterator it(m_other.m_fibers, m_fiberCount); it != end; ++it) { 123 123 ++fiberCount; … … 127 127 UStringImpl* string = *it; 128 128 matchPosition = string->find(character); 129 if (matchPosition == notFound)129 if (matchPosition == -1) 130 130 continue; 131 131 matchString = string;
Note:
See TracChangeset
for help on using the changeset viewer.