Build fix #2: Enable -Wcast-qual for WebInspectorUI, WebKitLegacy, WebKit projects
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Jan 2018 09:22:49 +0000 (09:22 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Jan 2018 09:22:49 +0000 (09:22 +0000)
commitf1d28e1e0b306a83a1f4f63d83f2f76a2e4815fd
treeeb721eaca020ca9fd208be6875273ba6137d6c70
parent2f72843b12ea9f939cb0e7c482991bf8b079ab85
Build fix #2: Enable -Wcast-qual for WebInspectorUI, WebKitLegacy, WebKit projects
<https://webkit.org/b/181256>
<rdar://problem/36281730>

* Plugins/WebNetscapePluginEventHandlerCocoa.mm:
(WebNetscapePluginEventHandlerCocoa::handleTSMEvent):
- Use reinterpret_cast<NPNSString*>(const_cast<CFMutableStringRef>())
  to avoid warnings from casting CFStringRef to NPNSString*.
  Note that CFMutableStringRef is the same as CFStringRef
  without the const modifier, hence its use in the const_cast<>
  above.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKitLegacy/mac/ChangeLog
Source/WebKitLegacy/mac/Plugins/WebNetscapePluginEventHandlerCocoa.mm