mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Removed unneccessary casts.
This commit is contained in:
parent
462db59ab4
commit
e70cfc3491
@ -71,7 +71,7 @@ nsresult Register(const char *path)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
rv = spec->InitWithPath((char *)path);
|
||||
rv = spec->InitWithPath(path);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = nsComponentManager::AutoRegisterComponent(nsIComponentManager::NS_Startup, spec);
|
||||
return rv;
|
||||
@ -91,7 +91,7 @@ nsresult Unregister(const char *path)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
rv = spec->InitWithPath((char *)path);
|
||||
rv = spec->InitWithPath(path);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = nsComponentManager::AutoUnregisterComponent(nsIComponentManager::NS_Startup, spec);
|
||||
return rv;
|
||||
|
Loading…
Reference in New Issue
Block a user