Skip to content

Commit

Permalink
Bug 784739 - Switch from NULL to nullptr in profile/; r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
poiru committed Jul 31, 2013
1 parent 0bacd98 commit 064266e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions profile/dirserviceprovider/src/nsProfileLock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void nsProfileLock::FatalSignalHandler(int signo
if (oldact->sa_handler == SIG_DFL) {
// Make sure the default sig handler is executed
// We need it to get Mozilla to dump core.
sigaction(signo,oldact,NULL);
sigaction(signo,oldact, nullptr);

// Now that we've restored the default handler, unmask the
// signal and invoke it.
Expand All @@ -175,7 +175,7 @@ void nsProfileLock::FatalSignalHandler(int signo
sigemptyset(&unblock_sigs);
sigaddset(&unblock_sigs, signo);

sigprocmask(SIG_UNBLOCK, &unblock_sigs, NULL);
sigprocmask(SIG_UNBLOCK, &unblock_sigs, nullptr);

raise(signo);
}
Expand Down Expand Up @@ -391,7 +391,7 @@ nsresult nsProfileLock::LockWithSymlink(nsIFile *aLockFile, bool aHaveFcntlLock)

#define CATCH_SIGNAL(signame) \
PR_BEGIN_MACRO \
if (sigaction(signame, NULL, &oldact) == 0 && \
if (sigaction(signame, nullptr, &oldact) == 0 && \
oldact.sa_handler != SIG_IGN) \
{ \
sigaction(signame, &act, &signame##_oldact); \
Expand Down Expand Up @@ -505,11 +505,11 @@ nsresult nsProfileLock::Lock(nsIFile* aProfileDir,
if (ioBytes == sizeof(LockProcessInfo))
{
#ifdef __LP64__
processInfo.processAppRef = NULL;
processInfo.processAppRef = nullptr;
#else
processInfo.processAppSpec = NULL;
processInfo.processAppSpec = nullptr;
#endif
processInfo.processName = NULL;
processInfo.processName = nullptr;
processInfo.processInfoLength = sizeof(ProcessInfoRec);
if (::GetProcessInformation(&lockProcessInfo.psn, &processInfo) == noErr &&
processInfo.processLaunchDate == lockProcessInfo.launchDate)
Expand Down

0 comments on commit 064266e

Please sign in to comment.