X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=null_prompt_service.cpp;h=2548512af320127dd51bee9d00bc8b6e331eee1a;hb=1a06648aac5164fa677b38285e63449fdc918de5;hp=37303c054a089211e373c4158d5de66f7af8b439;hpb=6e994af0a7e236de8d3e4dbfed0219f7fc3e1dbf;p=videolink.git diff --git a/null_prompt_service.cpp b/null_prompt_service.cpp index 37303c0..2548512 100644 --- a/null_prompt_service.cpp +++ b/null_prompt_service.cpp @@ -10,11 +10,12 @@ #include #include #include -#include +#include +#include #include #include "null_prompt_service.hpp" -#include "webdvd.hpp" +#include "videolink.hpp" #include "xpcom_support.hpp" using xpcom_support::check; @@ -50,7 +51,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 +194,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)); }