зеркало из https://github.com/mozilla/gecko-dev.git
Add assertion that documents a relationship between two of the args. Bug
333392, r+sr=sicking
This commit is contained in:
Родитель
fa09229848
Коммит
d8be2472d1
|
@ -840,6 +840,10 @@ nsXBLService::GetBinding(nsIContent* aBoundElement, nsIURI* aURI,
|
|||
PRBool aPeekOnly, PRBool* aIsReady,
|
||||
nsXBLBinding** aResult)
|
||||
{
|
||||
NS_ASSERTION(aPeekOnly || aResult,
|
||||
"Must have non-null out param if not just peeking to see "
|
||||
"whether the binding is ready");
|
||||
|
||||
if (aResult)
|
||||
*aResult = nsnull;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче