summaryrefslogtreecommitdiff
path: root/SpiceXPI
diff options
context:
space:
mode:
authorPeter Hatina <phatina@redhat.com>2011-11-15 14:37:38 +0100
committerPeter Hatina <phatina@redhat.com>2011-11-15 14:37:38 +0100
commitd8d4e3c4d55ad634f194a9cbf000c1607d3ae056 (patch)
tree3c5c20a87cfd1cbe794dcda841769779f4ff3851 /SpiceXPI
parent0dd49e42914bac3c30f6c731e8555b2273ddbc11 (diff)
fix compiler error, ambiguous function signatures
Diffstat (limited to 'SpiceXPI')
-rw-r--r--SpiceXPI/src/plugin/np_entry.cpp2
-rw-r--r--SpiceXPI/src/plugin/plugin.cpp2
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());
}