Changing Pref creation from CreateI (which does not work) to GetService.

This commit is contained in:
dougt%netscape.com 1999-06-02 14:06:48 +00:00
Родитель 99aab3d592
Коммит 0c4a589fd3
2 изменённых файлов: 6 добавлений и 8 удалений

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

@ -1216,10 +1216,9 @@ nsInstall::CurrentUserNode(nsString& userRegNode)
int len = MAXREGNAMELEN;
nsIPref * prefs;
nsresult rv = nsComponentManager::CreateInstance(kPrefsIID,
nsnull,
kPrefsCID,
(void**) &prefs);
nsresult rv = nsServiceManager::GetService(kPrefsCID,
kPrefsIID,
(nsISupports**) &prefs);
if ( NS_SUCCEEDED(rv) )

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

@ -132,10 +132,9 @@ nsInstallTrigger::UpdateEnabled(PRBool* aReturn)
{
nsIPref * prefs;
nsresult rv = nsComponentManager::CreateInstance(kPrefsIID,
nsnull,
kPrefsCID,
(void**) &prefs);
nsresult rv = nsServiceManager::GetService(kPrefsCID,
kPrefsIID,
(nsISupports**) &prefs);
if ( NS_SUCCEEDED(rv) )