Stub in the new RegisterFactory API in preparation for removing the old one.

This commit is contained in:
ebina%netscape.com 1999-02-25 16:07:31 +00:00
Родитель 44544524a9
Коммит 59f91f50e9
4 изменённых файлов: 36 добавлений и 0 удалений

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

@ -860,6 +860,17 @@ nsresult nsRepository::RegisterFactory(const nsCID &aClass,
return NS_OK;
}
nsresult nsRepository::RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace)
{
return (RegisterFactory(aClass, aFactory, aReplace));
}
nsresult nsRepository::RegisterFactory(const nsCID &aClass,
const char *aLibrary,
PRBool aReplace,

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

@ -170,6 +170,13 @@ public:
nsIFactory *aFactory,
PRBool aReplace);
// Manually registry a factory for a class
static nsresult RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace);
// Manually registry a dynamically loaded factory for a class
static nsresult RegisterFactory(const nsCID &aClass,
const char *aLibrary,

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

@ -170,6 +170,13 @@ public:
nsIFactory *aFactory,
PRBool aReplace);
// Manually registry a factory for a class
static nsresult RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace);
// Manually registry a dynamically loaded factory for a class
static nsresult RegisterFactory(const nsCID &aClass,
const char *aLibrary,

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

@ -860,6 +860,17 @@ nsresult nsRepository::RegisterFactory(const nsCID &aClass,
return NS_OK;
}
nsresult nsRepository::RegisterFactory(const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory *aFactory,
PRBool aReplace)
{
return (RegisterFactory(aClass, aFactory, aReplace));
}
nsresult nsRepository::RegisterFactory(const nsCID &aClass,
const char *aLibrary,
PRBool aReplace,