eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg

This commit is contained in:
darin@meer.net
2004-11-01 18:50:36 +00:00
parent b68f01812b
commit 41edd4cd6e
117 changed files with 524 additions and 940 deletions

View File

@@ -72,10 +72,7 @@ public:
NS_IF_RELEASE(mBlock);
}
nsresult Init() {
return nsComponentManager::CreateInstance(
NS_DIALOGPARAMBLOCK_CONTRACTID,
0, NS_GET_IID(nsIDialogParamBlock),
(void**) &mBlock);
return CallCreateInstance(NS_DIALOGPARAMBLOCK_CONTRACTID, &mBlock);
}
nsIDialogParamBlock * operator->() const { return mBlock; }
operator nsIDialogParamBlock * const () { return mBlock; }