зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1203427 (part 3) - Change order of InitCommon() arguments. r=froydnj.
This makes the order of |aDelay| and |aType| match those of the InitWith*() functions. I've made this change because the inconsistency tripped me up during the development of part 4. --HG-- extra : rebase_source : 7d49f3f643e76955ea3de57e0954deb22cda3ddf
This commit is contained in:
Родитель
cfe5f5f4f8
Коммит
886074f2e3
|
@ -188,7 +188,7 @@ nsTimerImpl::Shutdown()
|
|||
|
||||
|
||||
nsresult
|
||||
nsTimerImpl::InitCommon(uint32_t aType, uint32_t aDelay)
|
||||
nsTimerImpl::InitCommon(uint32_t aDelay, uint32_t aType)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
|
@ -231,7 +231,7 @@ nsTimerImpl::InitWithFuncCallback(nsTimerCallbackFunc aFunc,
|
|||
mCallback.c = aFunc;
|
||||
mClosure = aClosure;
|
||||
|
||||
return InitCommon(aType, aDelay);
|
||||
return InitCommon(aDelay, aType);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -248,7 +248,7 @@ nsTimerImpl::InitWithCallback(nsITimerCallback* aCallback,
|
|||
mCallback.i = aCallback;
|
||||
NS_ADDREF(mCallback.i);
|
||||
|
||||
return InitCommon(aType, aDelay);
|
||||
return InitCommon(aDelay, aType);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -263,7 +263,7 @@ nsTimerImpl::Init(nsIObserver* aObserver, uint32_t aDelay, uint32_t aType)
|
|||
mCallback.o = aObserver;
|
||||
NS_ADDREF(mCallback.o);
|
||||
|
||||
return InitCommon(aType, aDelay);
|
||||
return InitCommon(aDelay, aType);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -77,7 +77,7 @@ private:
|
|||
};
|
||||
|
||||
~nsTimerImpl();
|
||||
nsresult InitCommon(uint32_t aType, uint32_t aDelay);
|
||||
nsresult InitCommon(uint32_t aDelay, uint32_t aType);
|
||||
|
||||
void ReleaseCallback()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче