Skip to content

Commit

Permalink
Bug 784739 - Switch from NULL to nullptr in xpcom/ (3/3); r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
poiru committed Oct 10, 2013
1 parent 1c76fd0 commit ead4883
Show file tree
Hide file tree
Showing 69 changed files with 158 additions and 156 deletions.
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/os2/xptcstubs_gcc_x86_os2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PrepareAndDispatch(uint32_t methodIndex, nsXPTCStubBase* self, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint64_t* args)
const uint8_t NUM_ARG_REGS = 6-1; // -1 for "this" pointer

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ PrepareAndDispatch(nsXPTCStubBase * self, uint32_t methodIndex,
uint64_t * args, uint64_t * gpregs, double *fpregs)
{
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint32_t paramCount;
uint32_t i;
Expand Down
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm_netbsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsIInterfaceInfo* iface_info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
nsIInterfaceInfo* iface_info = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PrepareAndDispatch(uint32_t methodIndex, nsXPTCStubBase* self, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/unix/xptcstubs_ipf32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex,
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
nsresult result = NS_ERROR_FAILURE;
uint64_t* iargs = intargs;
Expand Down
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/unix/xptcstubs_ipf64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex,
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
nsresult result = NS_ERROR_FAILURE;
uint64_t* iargs = intargs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint64_t* args)
const uint8_t NUM_ARG_REGS = 6-1; // -1 for "this" pointer

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_m68k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern "C" {
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_s390.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex,
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex,
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/unix/xptcstubs_mips.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/unix/xptcstubs_mips64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint64_t* args,
#define PARAM_FPR_COUNT 7

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_netbsd_m68k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ extern "C" {
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsIInterfaceInfo* iface_info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
nsIInterfaceInfo* iface_info = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_nto_arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsIInterfaceInfo* iface_info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
nsIInterfaceInfo* iface_info = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_nto_shle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, int methodIndex, uint32_t* data,
int intCount = 0;
int floatCount = 0;
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsIInterfaceInfo* iface_info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
nsIInterfaceInfo* iface_info = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
2 changes: 1 addition & 1 deletion xpcom/reflect/xptcall/src/md/unix/xptcstubs_pa32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex,
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
int32_t regwords = 1; /* self pointer is not in the variant records */
nsresult result = NS_ERROR_FAILURE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ PrepareAndDispatch(nsXPTCStubBase* self,
double *fprData)
{
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint32_t paramCount;
uint32_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc_aix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args, u
#define PARAM_GPR_COUNT 7

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
const nsXPTMethodInfo* info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info = nullptr;
uint8_t paramCount;
uint8_t i;
nsresult result = NS_ERROR_FAILURE;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc_aix64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint64_t methodIndex, uint64_t* args, u
#define PARAM_GPR_COUNT 7

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
const nsXPTMethodInfo* info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info = nullptr;
uint8_t paramCount;
uint8_t i;
nsresult result = NS_ERROR_FAILURE;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ PrepareAndDispatch(nsXPTCStubBase* self,
double *fprData)
{
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
const nsXPTMethodInfo* info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info = nullptr;
uint32_t paramCount;
uint32_t i;
nsresult result = NS_ERROR_FAILURE;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc_netbsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ PrepareAndDispatch(nsXPTCStubBase* self,
double *fprData)
{
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsIInterfaceInfo* iface_info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
nsIInterfaceInfo* iface_info = nullptr;
const nsXPTMethodInfo* info;
uint32_t paramCount;
uint32_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc_openbsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ PrepareAndDispatch(nsXPTCStubBase* self,
double *fprData)
{
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
const nsXPTMethodInfo* info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info = nullptr;
uint32_t paramCount;
uint32_t i;
nsresult result = NS_ERROR_FAILURE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PrepareAndDispatch(
#define PARAM_GPR_COUNT 7

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant *dispatchParams = NULL;
nsXPTCMiniVariant *dispatchParams = nullptr;
const nsXPTMethodInfo *methodInfo;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint64_t methodIndex, uint64_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_sparc_netbsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsIInterfaceInfo* iface_info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
nsIInterfaceInfo* iface_info = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/unix/xptcstubs_sparc_openbsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsIInterfaceInfo* iface_info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
nsIInterfaceInfo* iface_info = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint64_t methodIndex, uint64_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PrepareAndDispatch(nsXPTCStubBase * self, uint32_t methodIndex,
uint64_t * args, uint64_t * gpregs, double *fpregs)
{
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint32_t paramCount;
uint32_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PrepareAndDispatch(nsXPTCStubBase * self, uint32_t methodIndex,
uint64_t * args, uint64_t * gpregs, double *fpregs)
{
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint32_t paramCount;
uint32_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PrepareAndDispatch(nsXPTCStubBase * self, uint32_t methodIndex,
uint64_t * args, uint64_t * gpregs, double *fpregs)
{
nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint32_t paramCount;
uint32_t i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint32_t* args)
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info;
uint8_t paramCount;
uint8_t i;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/win32/xptcstubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex,
#define PARAM_BUFFER_COUNT 16

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
const nsXPTMethodInfo* info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info = nullptr;
uint8_t paramCount;
uint8_t i;
nsresult result = NS_ERROR_FAILURE;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/win32/xptcstubs_x86_64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint64_t* args,
#define PARAM_FPR_COUNT 3

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
const nsXPTMethodInfo* info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info = nullptr;
uint8_t paramCount;
uint8_t i;
nsresult result = NS_ERROR_FAILURE;
Expand Down
4 changes: 2 additions & 2 deletions xpcom/reflect/xptcall/src/md/win32/xptcstubs_x86_64_gnu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ PrepareAndDispatch(nsXPTCStubBase * self, uint32_t methodIndex,
#define PARAM_FPR_COUNT 3

nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
nsXPTCMiniVariant* dispatchParams = NULL;
const nsXPTMethodInfo* info = NULL;
nsXPTCMiniVariant* dispatchParams = nullptr;
const nsXPTMethodInfo* info = nullptr;
uint8_t paramCount;
uint8_t i;
nsresult result = NS_ERROR_FAILURE;
Expand Down
8 changes: 4 additions & 4 deletions xpcom/reflect/xptcall/tests/TestXPTCInvoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,11 +1132,11 @@ const char* FooBarImpl::ImplName()
NS_IMETHODIMP
FooBarImpl::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
if (nullptr == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}

*aInstancePtr = NULL;
*aInstancePtr = nullptr;


if (aIID.Equals(NS_GET_IID(nsIFoo))) {
Expand Down Expand Up @@ -1303,11 +1303,11 @@ NS_IMETHODIMP FooBarImpl2::BarMethod2(int32_t i)
NS_IMETHODIMP
FooBarImpl2::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
if (nullptr == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}

*aInstancePtr = NULL;
*aInstancePtr = nullptr;


if (aIID.Equals(NS_GET_IID(nsIFoo))) {
Expand Down
Loading

0 comments on commit ead4883

Please sign in to comment.