-
benjamin@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=100044 Reviewed by Darin Adler. Improve some unfortunate use of String->NSString. * accessibility/mac/AXObjectCacheMac.mm: (WebCore::AXObjectCache::postPlatformNotification): The variable macNotification is ultimately needed as NSString, and all its value are or can be NSString. Convert the last 3 char* values to NSString literal and use NSString* all the way. * loader/mac/LoaderNSURLExtras.h: * loader/mac/LoaderNSURLExtras.mm: (suggestedFilenameWithMIMEType): We converted the String to NSString to pass to suggestedFilenameWithMIMEType. There is no need for the string to be a NSSTring there, we can leave it in its original type. The case checking for a nil MIMEType was dead code because the implicit conversion never returns nil. * platform/mac/DragImageMac.mm: (WebCore::createDragImageForLink): Use String's nsStringNilIfEmpty(). * platform/mac/HTMLConverter.mm: (-[WebHTMLConverter _addAttachmentForElement:URL:needsParagraph:usePlaceholder:]): Fix the coding style. Do the conversion to NSString only when needed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0cf8566d