Changeset 84827 in webkit
- Timestamp:
- Apr 25, 2011 4:17:04 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r84822 r84827 1 2011-04-25 Adam Barth <abarth@webkit.org> 2 3 Reviewed by David Levin. 4 5 Resource*.cpp should play nice with strict OwnPtrs 6 https://bugs.webkit.org/show_bug.cgi?id=59383 7 8 * bridge/runtime_method.cpp: 9 (JSC::RuntimeMethod::RuntimeMethod): 10 * platform/network/ResourceHandle.cpp: 11 (WebCore::ResourceHandle::ResourceHandle): 12 * platform/network/ResourceResponseBase.cpp: 13 (WebCore::ResourceResponseBase::adopt): 14 (WebCore::ResourceResponseBase::copyData): 15 1 16 2011-04-25 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Source/WebCore/bridge/runtime_method.cpp
r84052 r84827 47 47 // Callers will need to pass in the right global object corresponding to this native object "m". 48 48 : InternalFunction(&exec->globalData(), globalObject, structure, ident) 49 , _methodList( new MethodList(m))49 , _methodList(adoptPtr(new MethodList(m))) 50 50 { 51 51 ASSERT(inherits(&s_info)); -
trunk/Source/WebCore/platform/network/ResourceHandle.cpp
r80180 r84827 41 41 42 42 ResourceHandle::ResourceHandle(const ResourceRequest& request, ResourceHandleClient* client, bool defersLoading, bool shouldContentSniff) 43 : d( new ResourceHandleInternal(this, request, client, defersLoading, shouldContentSniff && shouldContentSniffURL(request.url())))43 : d(adoptPtr(new ResourceHandleInternal(this, request, client, defersLoading, shouldContentSniff && shouldContentSniffURL(request.url())))) 44 44 { 45 45 if (!request.url().isValid()) { -
trunk/Source/WebCore/platform/network/ResourceResponseBase.cpp
r82764 r84827 99 99 PassOwnPtr<ResourceResponse> ResourceResponseBase::adopt(PassOwnPtr<CrossThreadResourceResponseData> data) 100 100 { 101 OwnPtr<ResourceResponse> response (new ResourceResponse());101 OwnPtr<ResourceResponse> response = adoptPtr(new ResourceResponse); 102 102 response->setURL(data->m_url); 103 103 response->setMimeType(data->m_mimeType); … … 119 119 PassOwnPtr<CrossThreadResourceResponseData> ResourceResponseBase::copyData() const 120 120 { 121 OwnPtr<CrossThreadResourceResponseData> data (new CrossThreadResourceResponseData());121 OwnPtr<CrossThreadResourceResponseData> data = adoptPtr(new CrossThreadResourceResponseData); 122 122 data->m_url = url().copy(); 123 123 data->m_mimeType = mimeType().crossThreadString();
Note: See TracChangeset
for help on using the changeset viewer.