From 553cfc38f52984581c4ab7dbd518fe58d02998db Mon Sep 17 00:00:00 2001 From: kmcclusk Date: Thu, 18 Jun 1998 20:40:30 +0000 Subject: [PATCH] Initialize mDelay in constructor + Set delay in Init(aDelay) --- base/src/unix/nsTimer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/src/unix/nsTimer.cpp b/base/src/unix/nsTimer.cpp index 4fce3ad74a7e..8abaf312e8a5 100644 --- a/base/src/unix/nsTimer.cpp +++ b/base/src/unix/nsTimer.cpp @@ -83,6 +83,7 @@ void TimerImpl::FireTimeout() // Always repeating here +// if (mRepeat) // mTimerId = XtAppAddTimeOut(gAppContext, GetDelay(),(XtTimerCallbackProc)nsTimerExpired, this); } @@ -94,6 +95,7 @@ TimerImpl::TimerImpl() mCallback = NULL; mNext = NULL; mTimerId = 0; + mDelay = 0; } TimerImpl::~TimerImpl() @@ -131,7 +133,7 @@ TimerImpl::Init(nsITimerCallback *aCallback, nsresult TimerImpl::Init(PRUint32 aDelay) { - + mDelay = aDelay; NS_ADDREF(this); return NS_OK;