Browse Source

NP_GetMIMEDescription should return const char*

rdb 13 years ago
parent
commit
f651750539
2 changed files with 3 additions and 3 deletions
  1. 2 2
      direct/src/plugin_npapi/startup.cxx
  2. 1 1
      direct/src/plugin_npapi/startup.h

+ 2 - 2
direct/src/plugin_npapi/startup.cxx

@@ -116,9 +116,9 @@ open_logfile() {
 //               get the mimetypes and extensions this plugin is
 //               get the mimetypes and extensions this plugin is
 //               supposed to handle.
 //               supposed to handle.
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
-char*
+const char*
 NP_GetMIMEDescription(void) {
 NP_GetMIMEDescription(void) {
-  return (char*) "application/x-panda3d:p3d:Panda3D applet;";
+  return (const char*) "application/x-panda3d:p3d:Panda3D applet;";
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////

+ 1 - 1
direct/src/plugin_npapi/startup.h

@@ -29,7 +29,7 @@ extern "C" {
                                NPPluginFuncs *pluginFuncs);
                                NPPluginFuncs *pluginFuncs);
 #endif
 #endif
 
 
-  char* NP_GetMIMEDescription(void);
+  const char* NP_GetMIMEDescription(void);
   NPError NP_GetValue(void*, NPPVariable variable, void* value);
   NPError NP_GetValue(void*, NPPVariable variable, void* value);
   NPError OSCALL NP_GetEntryPoints(NPPluginFuncs *pluginFuncs);
   NPError OSCALL NP_GetEntryPoints(NPPluginFuncs *pluginFuncs);
   NPError OSCALL NP_Shutdown(void);
   NPError OSCALL NP_Shutdown(void);