windows / cygwin - libreoffice-3-5 compiler error
Rene Engelhard
rene at debian.org
Fri Feb 17 13:28:33 PST 2012
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
More information about the LibreOffice
mailing list