Browse Source

kplugins: match nsGenericFactory platform API changes (as of NM27 rev 1311ec4a4)

master
roytam1 1 year ago
parent
commit
a6b14ea29d
  1. 12
      k-meleon/kplugins/adblock/nsGenericFactory.cpp
  2. 14
      k-meleon/kplugins/jsbridge/nsGenericFactory.cpp

12
k-meleon/kplugins/adblock/nsGenericFactory.cpp

@ -94,10 +94,8 @@ NS_IMETHODIMP nsGenericFactory::GetInterfaces(PRUint32 *countp,
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::GetHelperForLanguage(PRUint32 language,
nsISupports **helper)
{
*helper = nullptr;
NS_IMETHODIMP nsGenericFactory::GetScriptableHelper(nsIXPCScriptable** retval) {
*retval = nullptr;
return NS_OK;
}
@ -144,12 +142,6 @@ NS_IMETHODIMP nsGenericFactory::GetClassIDNoAlloc(nsCID *aClassID)
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::GetImplementationLanguage(PRUint32 *langp)
{
*langp = nsIProgrammingLanguage::CPLUSPLUS;
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::GetFlags(PRUint32 *flagsp)
{
return NS_OK;

14
k-meleon/kplugins/jsbridge/nsGenericFactory.cpp

@ -95,11 +95,9 @@ NS_IMETHODIMP nsGenericFactory::GetInterfaces(PRUint32 *countp,
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::GetHelperForLanguage(PRUint32 language,
nsISupports **helper)
{
*helper = nullptr;
return NS_OK;
NS_IMETHODIMP nsGenericFactory::GetScriptableHelper(nsIXPCScriptable** retval) {
*retval = nullptr;
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::GetContractID(char **aContractID)
@ -145,12 +143,6 @@ NS_IMETHODIMP nsGenericFactory::GetClassIDNoAlloc(nsCID *aClassID)
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::GetImplementationLanguage(PRUint32 *langp)
{
*langp = nsIProgrammingLanguage::CPLUSPLUS;
return NS_OK;
}
NS_IMETHODIMP nsGenericFactory::GetFlags(PRUint32 *flagsp)
{
return NS_OK;

Loading…
Cancel
Save