diff options
author | Peter Hatina <phatina@redhat.com> | 2011-11-15 14:37:38 +0100 |
---|---|---|
committer | Peter Hatina <phatina@redhat.com> | 2011-11-15 14:37:38 +0100 |
commit | d8d4e3c4d55ad634f194a9cbf000c1607d3ae056 (patch) | |
tree | 3c5c20a87cfd1cbe794dcda841769779f4ff3851 /SpiceXPI | |
parent | 0dd49e42914bac3c30f6c731e8555b2273ddbc11 (diff) |
fix compiler error, ambiguous function signatures
Diffstat (limited to 'SpiceXPI')
-rw-r--r-- | SpiceXPI/src/plugin/np_entry.cpp | 2 | ||||
-rw-r--r-- | SpiceXPI/src/plugin/plugin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/SpiceXPI/src/plugin/np_entry.cpp b/SpiceXPI/src/plugin/np_entry.cpp index 4af8944..021694c 100644 --- a/SpiceXPI/src/plugin/np_entry.cpp +++ b/SpiceXPI/src/plugin/np_entry.cpp @@ -209,7 +209,7 @@ NPError NP_Initialize(NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs) return NS_PluginInitialize(); } -char *NP_GetMIMEDescription() +const char *NP_GetMIMEDescription() { return NPP_GetMIMEDescription(); } diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp index e7ea27a..2dada12 100644 --- a/SpiceXPI/src/plugin/plugin.cpp +++ b/SpiceXPI/src/plugin/plugin.cpp @@ -106,7 +106,7 @@ namespace { } } -char *NPP_GetMIMEDescription(void) +const char *NPP_GetMIMEDescription(void) { return const_cast<char *>(MIME_TYPES_DESCRIPTION.c_str()); } |