fix incorrectly declared callback and its evil (cast) that were crashing my release builds of xpcshell and viewer. r=dougt

git-svn-id: svn://10.0.0.236/trunk@59912 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jband%netscape.com 2000-02-06 01:09:15 +00:00
parent dda13b86d9
commit 2fdce1f62b

View File

@ -456,7 +456,7 @@ nsSoftwareUpdateNameSet::AddNameSet(nsIScriptContext* aScriptContext)
// Functions used to create new instances of a given object by the
// generic factory.
static NS_IMETHODIMP
static NS_METHOD
CreateNewSoftwareUpdate(nsISupports* aOuter, REFNSIID aIID, void **aResult)
{
if (!aResult) {
@ -483,10 +483,11 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsInstallVersion);
nsresult RegisterSoftwareUpdate( nsIComponentManager *aCompMgr,
nsIFile *aPath,
const char *registryLocation,
const char *componentType)
static NS_METHOD
RegisterSoftwareUpdate( nsIComponentManager *aCompMgr,
nsIFile *aPath,
const char *registryLocation,
const char *componentType)
{
// get the registry
nsIRegistry* registry;
@ -523,19 +524,19 @@ static nsModuleComponentInfo components[] =
NS_SoftwareUpdate_CID,
NS_IXPINSTALLCOMPONENT_PROGID,
CreateNewSoftwareUpdate,
(NSRegisterSelfProcPtr)RegisterSoftwareUpdate,
RegisterSoftwareUpdate
},
{ "InstallTrigger Component",
NS_SoftwareUpdateInstallTrigger_CID,
NS_INSTALLTRIGGERCOMPONENT_PROGID,
nsInstallTriggerConstructor,
nsInstallTriggerConstructor
},
{ "InstallVersion Component",
NS_SoftwareUpdateInstallVersion_CID,
NS_INSTALLVERSIONCOMPONENT_PROGID,
nsInstallVersionConstructor,
NS_INSTALLVERSIONCOMPONENT_PROGID,
nsInstallVersionConstructor
},
};