Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Fri, Feb 17, 2012 at 10:23:16PM +0100, Rene Engelhard wrote:
On Fri, Feb 17, 2012 at 10:10:19PM +0100, walter wrote:
   C:/LO35/np_sdk/mozsrc/npwin.cpp(171) : error C2440: 'return' : cannot
   convert from 'const char *' to 'char *'

Yes. Make that const char* in npwin.cxx. Forgot that file. (Windows-only.)

Try this?

diff --git a/np_sdk/mozsrc/npupp.h b/np_sdk/mozsrc/npupp.h
index e6e452b..769a119 100644
--- a/np_sdk/mozsrc/npupp.h
+++ b/np_sdk/mozsrc/npupp.h
@@ -1236,7 +1236,7 @@ NPError WINAPI NP_Initialize(NPNetscapeFuncs *aNPNFuncs);

 void WINAPI NP_Shutdown();

-char*   NP_GetMIMEDescription();
+const char*   NP_GetMIMEDescription();

 #ifdef __cplusplus
 }
diff --git a/np_sdk/mozsrc/npwin.cpp b/np_sdk/mozsrc/npwin.cpp
index f31b621..1492196 100644
--- a/np_sdk/mozsrc/npwin.cpp
+++ b/np_sdk/mozsrc/npwin.cpp
@@ -166,7 +166,7 @@ NP_Shutdown()
     g_pNavigatorFuncs = NULL;
 }

-char * NP_GetMIMEDescription()
+const char * NP_GetMIMEDescription()
 {
     return NPP_GetMIMEDescription();
 }

Though I am not sure why this is needed. Only NPP_GetMIMEDescription was changed
from char* to const char*...

Regards,
 
Rene

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.