summaryrefslogtreecommitdiff
path: root/embed/mozilla/MozRegisterComponents.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/MozRegisterComponents.cpp')
-rw-r--r--embed/mozilla/MozRegisterComponents.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/embed/mozilla/MozRegisterComponents.cpp b/embed/mozilla/MozRegisterComponents.cpp
index a99f15b10..c3247e58a 100644
--- a/embed/mozilla/MozRegisterComponents.cpp
+++ b/embed/mozilla/MozRegisterComponents.cpp
@@ -37,9 +37,8 @@
#include "GtkNSSKeyPairDialogs.h"
#endif
-#if MOZILLA_SNAPSHOT > 13
+#include <nsMemory.h>
#include <nsDocShellCID.h>
-#endif
#include <nsIGenericFactory.h>
#include <nsIComponentRegistrar.h>
#include <nsICategoryManager.h>
@@ -72,11 +71,12 @@ RegisterContentPolicy(nsIComponentManager *aCompMgr, nsIFile *aPath,
do_GetService(NS_CATEGORYMANAGER_CONTRACTID);
NS_ENSURE_TRUE (cm, NS_ERROR_FAILURE);
- nsXPIDLCString oldval;
+ char *oldval;
return cm->AddCategoryEntry("content-policy",
EPHY_CONTENT_POLICY_CONTRACTID,
EPHY_CONTENT_POLICY_CONTRACTID,
- PR_TRUE, PR_TRUE, getter_Copies (oldval));
+ PR_TRUE, PR_TRUE, &oldval);
+ nsMemory::Free (oldval);
}
static const nsModuleComponentInfo sAppComps[] = {
@@ -127,11 +127,7 @@ static const nsModuleComponentInfo sAppComps[] = {
{
EPHY_GLOBALHISTORY_CLASSNAME,
EPHY_GLOBALHISTORY_CID,
-#if MOZILLA_SNAPSHOT > 13
NS_GLOBALHISTORY2_CONTRACTID,
-#else
- NS_GLOBALHISTORY_CONTRACTID,
-#endif
MozGlobalHistoryConstructor
},
{