Bug 304899 comment about QI to the obsolete manager is stale

patch by timwatt@gmail.com r=dougt
This commit is contained in:
timeless%mozdev.org 2005-08-19 09:37:43 +00:00
Родитель 19dc7352a7
Коммит e29622310f
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -579,8 +579,6 @@ nsresult NS_COM NS_InitXPCOM3(nsIServiceManager* *result,
if ( NS_FAILED(rv) ) return rv;
}
// what I want to do here is QI for a Component Registration Manager. Since this
// has not been invented yet, QI to the obsolete manager. Kids, don't do this at home.
nsCOMPtr<nsIComponentRegistrar> registrar = do_QueryInterface(
NS_STATIC_CAST(nsIComponentManager*,compMgr), &rv);
if (registrar) {