eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user