Reviewed by Jan Alonzo.
https://bugs.webkit.org/show_bug.cgi?id=26877
[GTK] DRT fixes to pass new plugin test
Silence compiler warnings.
Newer GCC don't like using or returning a static string where a
'char*' is expected. Ideally we'd change the function signatures
to return or take 'const char*' I suppose, but since we can't do
that just cast the strings to 'char*'.
* DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp:
(webkit_test_plugin_get_value):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@45431
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2009-06-30 Xan Lopez <xlopez@igalia.com>
+
+ Reviewed by Jan Alonzo.
+
+ https://bugs.webkit.org/show_bug.cgi?id=26877
+ [GTK] DRT fixes to pass new plugin test
+
+ Silence compiler warnings.
+
+ Newer GCC don't like using or returning a static string where a
+ 'char*' is expected. Ideally we'd change the function signatures
+ to return or take 'const char*' I suppose, but since we can't do
+ that just cast the strings to 'char*'.
+
+ * DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp:
+ (webkit_test_plugin_get_value):
+
2009-06-30 Xan Lopez <xlopez@igalia.com>
Reviewed by Jan Alonzo.
switch (variable) {
case NPPVpluginNameString:
- *((char **)value) = "WebKit Test PlugIn";
+ *((char **)value) = const_cast<char*>("WebKit Test PlugIn");
break;
case NPPVpluginDescriptionString:
- *((char **)value) = "Simple Netscape plug-in that handles test content for WebKit";
+ *((char **)value) = const_cast<char*>("Simple Netscape plug-in that handles test content for WebKit");
break;
case NPPVpluginNeedsXEmbed:
*((NPBool *)value) = TRUE;
char *
NP_GetMIMEDescription(void)
{
- return "application/x-webkit-test-netscape:testnetscape:test netscape content";
+ return const_cast<char*>("application/x-webkit-test-netscape:testnetscape:test netscape content");
}
NPError