Ignore:
Timestamp:
Feb 20, 2014, 12:57:20 PM (12 years ago)
Author:
[email protected]
Message:

Replace uses of deprecated POSIX index() with strchr() in ObjcRuntimeExtras.h
https://bugs.webkit.org/show_bug.cgi?id=128610

Reviewed by Anders Carlsson.

index() is deprecated in favor of strchr() so we should use the latter.

  • API/JSWrapperMap.mm:

(selectorToPropertyName):

  • API/ObjcRuntimeExtras.h:

(parseObjCType):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/ObjcRuntimeExtras.h

    r163876 r164443  
    194194        if (*position == '"') {
    195195            const char* begin = position + 1;
    196             const char* protocolPosition = index(begin, '<');
    197             const char* endOfType = index(begin, '"');
     196            const char* protocolPosition = strchr(begin, '<');
     197            const char* endOfType = strchr(begin, '"');
    198198            position = endOfType + 1;
    199199
Note: See TracChangeset for help on using the changeset viewer.