X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=null_prompt_service.cpp;h=68d6d9010a287cb6189cd93137afb4d54273afe7;hp=03355acc10fdef70fff4319a994fc06961912d30;hb=HEAD;hpb=4b8bff9ce93df43b120c5cf4d1476d3a435f99d3 diff --git a/null_prompt_service.cpp b/null_prompt_service.cpp index 03355ac..68d6d90 100644 --- a/null_prompt_service.cpp +++ b/null_prompt_service.cpp @@ -6,12 +6,15 @@ #include +#include "wchar_t_short.h" #include #include #include #include -#include +#include +#include #include +#include "wchar_t_default.h" #include "null_prompt_service.hpp" #include "videolink.hpp" @@ -50,7 +53,7 @@ namespace } } - NS_IMETHODIMP null_prompt_service_factory::LockFactory(PRBool lock) + NS_IMETHODIMP null_prompt_service_factory::LockFactory(PRBool /*lock*/) { return NS_ERROR_NOT_IMPLEMENTED; } @@ -193,10 +196,11 @@ void null_prompt_service::install() {0xb4, 0x6a, 0x25, 0xc0, 0xb3, 0x8, 0xcb, 0xd0} }; nsCOMPtr prompt_factory(new null_prompt_service_factory); - check(nsComponentManager::RegisterFactory( + nsCOMPtr comp_registrar; + check(NS_GetComponentRegistrar(getter_AddRefs(comp_registrar))); + check(comp_registrar->RegisterFactory( prompt_service_cid, "Prompt Service", "@mozilla.org/embedcomp/prompt-service;1", - prompt_factory, - PR_TRUE)); // replace existing + prompt_factory)); }