mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fixed typo
This commit is contained in:
parent
4e054e0646
commit
1a2164d8e2
@ -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);
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user