mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1156790 - mark various nsCOMPtr_helper-esque classes as final; r=mccr8
This commit is contained in:
parent
fa0ab7ea4d
commit
fdddcd9b44
@ -15,7 +15,7 @@
|
||||
/*****************************************************************************/
|
||||
|
||||
template<class T>
|
||||
class MOZ_STACK_CLASS nsQueryObject : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsQueryObject final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
explicit nsQueryObject(T* aRawPtr)
|
||||
@ -35,7 +35,7 @@ private:
|
||||
};
|
||||
|
||||
template<class T>
|
||||
class MOZ_STACK_CLASS nsQueryObjectWithError : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsQueryObjectWithError final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsQueryObjectWithError(T* aRawPtr, nsresult* aErrorPtr)
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "nsIArray.h"
|
||||
|
||||
// helper class for do_QueryElementAt
|
||||
class MOZ_STACK_CLASS nsQueryArrayElementAt : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsQueryArrayElementAt final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsQueryArrayElementAt(nsIArray* aArray, uint32_t aIndex,
|
||||
|
@ -169,7 +169,7 @@ private:
|
||||
nsISupports* MOZ_OWNING_REF mRawPtr;
|
||||
};
|
||||
|
||||
class nsQueryInterfaceWithError
|
||||
class nsQueryInterfaceWithError final
|
||||
{
|
||||
public:
|
||||
nsQueryInterfaceWithError(nsISupports* aRawPtr, nsresult* aError)
|
||||
@ -218,7 +218,7 @@ do_QueryInterface(already_AddRefed<T>&, nsresult*)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Using servicemanager with COMPtrs
|
||||
class nsGetServiceByCID
|
||||
class nsGetServiceByCID final
|
||||
{
|
||||
public:
|
||||
explicit nsGetServiceByCID(const nsCID& aCID) : mCID(aCID) {}
|
||||
@ -229,7 +229,7 @@ private:
|
||||
const nsCID& mCID;
|
||||
};
|
||||
|
||||
class nsGetServiceByCIDWithError
|
||||
class nsGetServiceByCIDWithError final
|
||||
{
|
||||
public:
|
||||
nsGetServiceByCIDWithError(const nsCID& aCID, nsresult* aErrorPtr)
|
||||
@ -245,7 +245,7 @@ private:
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
class nsGetServiceByContractID
|
||||
class nsGetServiceByContractID final
|
||||
{
|
||||
public:
|
||||
explicit nsGetServiceByContractID(const char* aContractID)
|
||||
@ -259,7 +259,7 @@ private:
|
||||
const char* mContractID;
|
||||
};
|
||||
|
||||
class nsGetServiceByContractIDWithError
|
||||
class nsGetServiceByContractIDWithError final
|
||||
{
|
||||
public:
|
||||
nsGetServiceByContractIDWithError(const char* aContractID, nsresult* aErrorPtr)
|
||||
|
@ -26,7 +26,7 @@ nsresult CallGetClassObject(const char* aContractID, const nsIID& aIID,
|
||||
void** aResult);
|
||||
|
||||
|
||||
class MOZ_STACK_CLASS nsCreateInstanceByCID : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsCreateInstanceByCID final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsCreateInstanceByCID(const nsCID& aCID, nsISupports* aOuter,
|
||||
@ -46,7 +46,7 @@ private:
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
class MOZ_STACK_CLASS nsCreateInstanceByContractID : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsCreateInstanceByContractID final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsCreateInstanceByContractID(const char* aContractID, nsISupports* aOuter,
|
||||
@ -65,7 +65,7 @@ private:
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
class MOZ_STACK_CLASS nsCreateInstanceFromFactory : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsCreateInstanceFromFactory final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsCreateInstanceFromFactory(nsIFactory* aFactory, nsISupports* aOuter,
|
||||
@ -124,7 +124,7 @@ do_CreateInstance(nsIFactory* aFactory, nsISupports* aOuter,
|
||||
}
|
||||
|
||||
|
||||
class MOZ_STACK_CLASS nsGetClassObjectByCID : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsGetClassObjectByCID final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsGetClassObjectByCID(const nsCID& aCID, nsresult* aErrorPtr)
|
||||
@ -140,7 +140,7 @@ private:
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
class MOZ_STACK_CLASS nsGetClassObjectByContractID : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsGetClassObjectByContractID final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsGetClassObjectByContractID(const char* aContractID, nsresult* aErrorPtr)
|
||||
|
@ -22,7 +22,7 @@ CallGetInterface(T* aSource, DestinationType** aDestination)
|
||||
reinterpret_cast<void**>(aDestination));
|
||||
}
|
||||
|
||||
class MOZ_STACK_CLASS nsGetInterface : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsGetInterface final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsGetInterface(nsISupports* aSource, nsresult* aError)
|
||||
|
@ -30,7 +30,7 @@ CallQueryReferent(T* aSource, DestinationType** aDestination)
|
||||
}
|
||||
|
||||
|
||||
class MOZ_STACK_CLASS nsQueryReferent : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsQueryReferent final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsQueryReferent(nsIWeakReference* aWeakPtr, nsresult* aError)
|
||||
|
@ -34,7 +34,7 @@ do_GetService(const char* aContractID, nsresult* aError)
|
||||
return nsGetServiceByContractIDWithError(aContractID, aError);
|
||||
}
|
||||
|
||||
class MOZ_STACK_CLASS nsGetServiceFromCategory : public nsCOMPtr_helper
|
||||
class MOZ_STACK_CLASS nsGetServiceFromCategory final : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsGetServiceFromCategory(const char* aCategory, const char* aEntry,
|
||||
|
Loading…
Reference in New Issue
Block a user