Fixed typo

This commit is contained in:
warren%netscape.com 1998-08-29 02:24:41 +00:00
parent 4e054e0646
commit 1a2164d8e2
3 changed files with 8 additions and 8 deletions

View File

@ -30,7 +30,7 @@ int main(int argc, char **argv) {
RegisterTestFactories();
ITestClass *t = NULL;
NSRepository::CreateInstance(kTestFactoryCID,
nsRepository::CreateInstance(kTestFactoryCID,
NULL,
kTestClassIID,
(void **) &t);
@ -44,7 +44,7 @@ int main(int argc, char **argv) {
t = NULL;
NSRepository::CreateInstance(kTestLoadedFactoryCID,
nsRepository::CreateInstance(kTestLoadedFactoryCID,
NULL,
kTestClassIID,
(void **) &t);
@ -56,7 +56,7 @@ int main(int argc, char **argv) {
cout << "Dynamic CreateInstance failed\n";
}
NSRepository::FreeLibraries();
nsRepository::FreeLibraries();
return 0;
}
@ -130,12 +130,12 @@ nsresult TestFactory::CreateInstance(nsISupports *aDelegate,
*/
extern "C" void RegisterTestFactories() {
NSRepository::RegisterFactory(kTestFactoryCID, new TestFactory(),
nsRepository::RegisterFactory(kTestFactoryCID, new TestFactory(),
PR_FALSE);
// Windows can use persistant registry
#ifndef USE_NSREG
NSRepository::RegisterFactory(kTestLoadedFactoryCID,
nsRepository::RegisterFactory(kTestLoadedFactoryCID,
"libtestdynamic.so",
PR_FALSE,
PR_TRUE);

View File

@ -182,7 +182,7 @@ SetupFactories(void)
{
nsresult err;
// seed the repository (hack)
err = NSRepository::RegisterFactory(kIMyServiceCID, "MyService.dll",
err = nsRepository::RegisterFactory(kIMyServiceCID, "MyService.dll",
PR_TRUE, PR_FALSE);
NS_ASSERTION(err == NS_OK, "failed to register my factory");
}

View File

@ -128,11 +128,11 @@ extern "C" NS_EXPORT PRBool NSCanUnload() {
extern "C" NS_EXPORT nsresult NSRegisterSelf(const char *path)
{
return NSRepository::RegisterFactory(kTestLoadedFactoryCID, path,
return nsRepository::RegisterFactory(kTestLoadedFactoryCID, path,
PR_TRUE, PR_TRUE);
}
extern "C" NS_EXPORT nsresult NSUnregisterSelf(const char *path)
{
return NSRepository::UnregisterFactory(kTestLoadedFactoryCID, path);
return nsRepository::UnregisterFactory(kTestLoadedFactoryCID, path);
}