From 699b3b662c7879af687412e086de22696ab11573 Mon Sep 17 00:00:00 2001 From: Rene Engelhard Date: Fri, 17 Feb 2012 15:40:37 +0100 Subject: char* -> const char* for npapis getMIMEDescription to fix build with newer mozs --- extensions/source/nsplugin/source/npshell.cxx | 2 +- np_sdk/inc/npapi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx index 7e5749ba9a2a..6d6122834ad2 100644 --- a/extensions/source/nsplugin/source/npshell.cxx +++ b/extensions/source/nsplugin/source/npshell.cxx @@ -361,7 +361,7 @@ MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII ":odp:OpenDocument Presentation;" MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII ":otp:OpenDocument Presentation Template;" MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII ":odf:OpenDocument Formula;" ); -char* +const char* NPP_GetMIMEDescription(void) { debug_fprintf(NSP_LOG_APPEND, "print by Netscape Plugin, NPP_GetMIMEDescription:%s.\n", pMimeTypes); diff --git a/np_sdk/inc/npapi.h b/np_sdk/inc/npapi.h index 7db99814b73a..0a2d5650646e 100644 --- a/np_sdk/inc/npapi.h +++ b/np_sdk/inc/npapi.h @@ -784,7 +784,7 @@ extern "C" { /* NPP_* functions are provided by the plugin and called by the navigator. */ -char* NPP_GetMIMEDescription(void); +const char* NPP_GetMIMEDescription(void); NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved); -- cgit