missed more nsIRegistry::Key usages
This commit is contained in:
Родитель
31840257ed
Коммит
209ddb7236
|
@ -301,7 +301,7 @@ void
|
|||
nsAppShellService::EnumerateComponents( EnumeratorMemberFunction function ) {
|
||||
nsresult rv;
|
||||
nsIRegistry *registry = 0;
|
||||
nsIRegistry::Key key;
|
||||
nsRegistryKey key;
|
||||
nsIEnumerator *components = 0;
|
||||
const char *failed = "GetService";
|
||||
if ( NS_SUCCEEDED( ( rv = nsServiceManager::GetService( NS_REGISTRY_PROGID,
|
||||
|
|
|
@ -322,7 +322,7 @@ NSRegisterSelf( nsISupports* aServiceMgr, const char* path ) { \
|
|||
NS_IAPPSHELLCOMPONENT_KEY, \
|
||||
cidString ? cidString : "unknown" ); \
|
||||
delete [] cidString; \
|
||||
nsIRegistry::Key key; \
|
||||
nsRegistryKey key; \
|
||||
rv = registry->AddSubtree( nsIRegistry::Common, \
|
||||
buffer, \
|
||||
&key ); \
|
||||
|
|
|
@ -241,7 +241,7 @@ nsRegistryDataSource::GetKey(nsIRDFResource* aResource)
|
|||
if (PL_strncmp(uri, kKeyPrefix, sizeof(kKeyPrefix) - 1) != 0)
|
||||
return -1;
|
||||
|
||||
nsIRegistry::Key key;
|
||||
nsRegistryKey key;
|
||||
const char* path = uri + sizeof(kKeyPrefix); // one extra to skip initial '/'
|
||||
rv = mRegistry->GetSubtree(nsIRegistry::Common, path, &key);
|
||||
if (NS_FAILED(rv)) return -1;
|
||||
|
|
|
@ -580,7 +580,7 @@ NSRegisterSelf(nsISupports* aServMgr, const char *path)
|
|||
cid ? cid : "unknown" );
|
||||
nsCRT::free(cid);
|
||||
|
||||
nsIRegistry::Key key;
|
||||
nsRegistryKey key;
|
||||
rv = registry->AddSubtree( nsIRegistry::Common,
|
||||
buffer,
|
||||
&key );
|
||||
|
|
Загрузка…
Ссылка в новой задаче