Ignore:
Timestamp:
Jun 15, 2017, 8:55:43 PM (8 years ago)
Author:
[email protected]
Message:

[Cocoa] Modernize some internal initializers to use instancetype instead of id
https://bugs.webkit.org/show_bug.cgi?id=173112

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2017-06-15
Reviewed by Wenson Hsieh.

  • API/JSContextInternal.h:
  • API/JSWrapperMap.h:
  • API/JSWrapperMap.mm:

(-[JSObjCClassInfo initForClass:]):
(-[JSWrapperMap initWithGlobalContextRef:]):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSWrapperMap.mm

    r218316 r218379  
    372372}
    373373
    374 - (id)initForClass:(Class)cls;
     374- (instancetype)initForClass:(Class)cls;
    375375- (JSC::JSObject *)wrapperForObject:(id)object inContext:(JSContext *)context;
    376376- (JSC::JSObject *)constructorInContext:(JSContext *)context;
     
    381381@implementation JSObjCClassInfo
    382382
    383 - (id)initForClass:(Class)cls
     383- (instancetype)initForClass:(Class)cls
    384384{
    385385    self = [super init];
     
    553553}
    554554
    555 - (id)initWithGlobalContextRef:(JSGlobalContextRef)context
     555- (instancetype)initWithGlobalContextRef:(JSGlobalContextRef)context
    556556{
    557557    self = [super init];
Note: See TracChangeset for help on using the changeset viewer.