Changeset 150054 in webkit


Ignore:
Timestamp:
May 13, 2013 9:09:27 PM (11 years ago)
Author:
ddkilzer@apple.com
Message:

BUILD FIX (r150049): Fix RetainPtr<> type in PasteboardIOS.mm

  • platform/ios/PasteboardIOS.mm:

(WebCore::Pasteboard::writeImage): Use RetainPtr<CFStringRef>
instead of RetainPtr<NSString>.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150053 r150054  
     12013-05-13  David Kilzer  <ddkilzer@apple.com>
     2
     3        BUILD FIX (r150049): Fix RetainPtr<> type in PasteboardIOS.mm
     4
     5        * platform/ios/PasteboardIOS.mm:
     6        (WebCore::Pasteboard::writeImage): Use RetainPtr<CFStringRef>
     7        instead of RetainPtr<NSString>.
     8
    192013-05-13  Benjamin Poulain  <bpoulain@apple.com>
    210
  • trunk/Source/WebCore/platform/ios/PasteboardIOS.mm

    r150049 r150054  
    196196    RetainPtr<NSMutableDictionary> dictionary = adoptNS([[NSMutableDictionary alloc] init]);
    197197    NSString *mimeType = cachedImage->response().mimeType();
    198     RetainPtr<NSString> uti = adoptCF((NSString *)UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, (CFStringRef)mimeType, NULL));
     198    RetainPtr<CFStringRef> uti = adoptCF(UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, (CFStringRef)mimeType, NULL));
    199199    if (uti) {
    200         [dictionary.get() setObject:imageData.get() forKey:uti.get()];
     200        [dictionary.get() setObject:imageData.get() forKey:(NSString *)uti.get()];
    201201        [dictionary.get() setObject:(NSString *)node->document()->completeURL(stripLeadingAndTrailingHTMLSpaces(static_cast<HTMLElement*>(node)->getAttribute("src"))) forKey:(NSString *)kUTTypeURL];
    202202    }
Note: See TracChangeset for help on using the changeset viewer.