Bug 542959: Add 'const' to NP_GetMIMEDescription's parameter, to fix "deprecated conversion from string constant to ‘char*’" warning. r=cjones
This commit is contained in:
@@ -647,11 +647,11 @@ PluginModuleParent::NP_Shutdown(NPError* error)
|
||||
}
|
||||
|
||||
nsresult
|
||||
PluginModuleParent::NP_GetMIMEDescription(char** mimeDesc)
|
||||
PluginModuleParent::NP_GetMIMEDescription(const char** mimeDesc)
|
||||
{
|
||||
PLUGIN_LOG_DEBUG_METHOD;
|
||||
|
||||
*mimeDesc = (char*)"application/x-foobar";
|
||||
*mimeDesc = "application/x-foobar";
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user