Changeset 84883 in webkit


Ignore:
Timestamp:
Apr 25, 2011 11:24:56 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-04-25 Adam Barth <abarth@webkit.org>

Reviewed by David Levin.

WebKit1 should build cleanly with strict OwnPtrs
https://bugs.webkit.org/show_bug.cgi?id=59424

  • History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]):
  • Plugins/WebNetscapePluginEventHandler.h:
  • Plugins/WebNetscapePluginEventHandler.mm: (WebNetscapePluginEventHandler::create):
  • Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView createPlugin]):
  • WebView/WebDeviceOrientationProviderMock.mm:
  • WebView/WebTextIterator.mm: (-[WebTextIterator initWithRange:]):
Location:
trunk/Source/WebKit/mac
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r84769 r84883  
     12011-04-25  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by David Levin.
     4
     5        WebKit1 should build cleanly with strict OwnPtrs
     6        https://bugs.webkit.org/show_bug.cgi?id=59424
     7
     8        * History/WebHistoryItem.mm:
     9        (-[WebHistoryItem initFromDictionaryRepresentation:]):
     10        * Plugins/WebNetscapePluginEventHandler.h:
     11        * Plugins/WebNetscapePluginEventHandler.mm:
     12        (WebNetscapePluginEventHandler::create):
     13        * Plugins/WebNetscapePluginView.mm:
     14        (-[WebNetscapePluginView createPlugin]):
     15        * WebView/WebDeviceOrientationProviderMock.mm:
     16        * WebView/WebTextIterator.mm:
     17        (-[WebTextIterator initWithRange:]):
     18
    1192011-04-25  Jon Lee  <jonlee@apple.com>
    220
  • trunk/Source/WebKit/mac/History/WebHistoryItem.mm

    r81058 r84883  
    379379    if (NSArray *redirectURLs = [dict _webkit_arrayForKey:redirectURLsKey]) {
    380380        NSUInteger size = [redirectURLs count];
    381         OwnPtr<Vector<String> > redirectURLsVector(new Vector<String>(size));
     381        OwnPtr<Vector<String> > redirectURLsVector = adoptPtr(new Vector<String>(size));
    382382        for (NSUInteger i = 0; i < size; ++i)
    383383            (*redirectURLsVector)[i] = String([redirectURLs _webkit_stringAtIndex:i]);
  • trunk/Source/WebKit/mac/Plugins/WebNetscapePluginEventHandler.h

    r42679 r84883  
    3838class WebNetscapePluginEventHandler {
    3939public:
    40     static WebNetscapePluginEventHandler* create(WebNetscapePluginView*);
     40    static PassOwnPtr<WebNetscapePluginEventHandler> create(WebNetscapePluginView*);
    4141    virtual ~WebNetscapePluginEventHandler() { }
    4242   
  • trunk/Source/WebKit/mac/Plugins/WebNetscapePluginEventHandler.mm

    r38267 r84883  
    2929
    3030#import <wtf/Assertions.h>
     31#import <wtf/PassOwnPtr.h>
    3132#import "WebNetscapePluginView.h"
    3233#import "WebNetscapePluginEventHandlerCarbon.h"
    3334#import "WebNetscapePluginEventHandlerCocoa.h"
    3435
    35 WebNetscapePluginEventHandler* WebNetscapePluginEventHandler::create(WebNetscapePluginView* pluginView)
     36PassOwnPtr<WebNetscapePluginEventHandler> WebNetscapePluginEventHandler::create(WebNetscapePluginView* pluginView)
    3637{
    3738    switch ([pluginView eventModel]) {
    3839#ifndef NP_NO_CARBON
    3940        case NPEventModelCarbon:
    40             return new WebNetscapePluginEventHandlerCarbon(pluginView);
     41            return adoptPtr(new WebNetscapePluginEventHandlerCarbon(pluginView));
    4142#endif // NP_NO_CARBON
    4243        case NPEventModelCocoa:
    43             return new WebNetscapePluginEventHandlerCocoa(pluginView);
     44            return adoptPtr(new WebNetscapePluginEventHandlerCocoa(pluginView));
    4445        default:
    4546            ASSERT_NOT_REACHED();
    46             return 0;
     47            return PassOwnPtr<WebNetscapePluginEventHandler>();
    4748    }
    4849}
  • trunk/Source/WebKit/mac/Plugins/WebNetscapePluginView.mm

    r82945 r84883  
    11301130   
    11311131    // Create the event handler
    1132     _eventHandler.set(WebNetscapePluginEventHandler::create(self));
    1133        
     1132    _eventHandler = WebNetscapePluginEventHandler::create(self);
     1133
    11341134    return YES;
    11351135}
  • trunk/Source/WebKit/mac/WebView/WebDeviceOrientationProviderMock.mm

    r72146 r84883  
    2626#import "WebDeviceOrientationProviderMockInternal.h"
    2727
     28#import <wtf/PassOwnPtr.h>
    2829#import "WebDeviceOrientationInternal.h"
    2930
     
    3738    if (!self)
    3839        return nil;
    39     m_core.set(new DeviceOrientationClientMock());
     40    m_core = adoptPtr(new DeviceOrientationClientMock());
    4041    return self;
    4142}
  • trunk/Source/WebKit/mac/WebView/WebTextIterator.mm

    r58266 r84883  
    7272   
    7373    _private = [[WebTextIteratorPrivate alloc] init];
    74     _private->_textIterator.set(new TextIterator(core(range)));
     74    _private->_textIterator = adoptPtr(new TextIterator(core(range)));
    7575    return self;
    7676}
Note: See TracChangeset for help on using the changeset viewer.