Lines Matching defs:aResult
56 nsArrayEnumerator::HasMoreElements(PRBool* aResult)
58 NS_PRECONDITION(aResult != 0, "null ptr");
59 if (! aResult)
63 *aResult = PR_FALSE;
70 *aResult = (mIndex < (PRInt32) cnt);
75 nsArrayEnumerator::GetNext(nsISupports** aResult)
77 NS_PRECONDITION(aResult != 0, "null ptr");
78 if (! aResult)
82 *aResult = nsnull;
92 *aResult = mValueArray->ElementAt(mIndex++);
125 nsSingletonEnumerator::HasMoreElements(PRBool* aResult)
127 NS_PRECONDITION(aResult != 0, "null ptr");
128 if (! aResult)
131 *aResult = !mConsumed;
137 nsSingletonEnumerator::GetNext(nsISupports** aResult)
139 NS_PRECONDITION(aResult != 0, "null ptr");
140 if (! aResult)
148 *aResult = mValue;
149 NS_ADDREF(*aResult);
182 nsUnionEnumerator::HasMoreElements(PRBool* aResult)
184 NS_PRECONDITION(aResult != 0, "null ptr");
185 if (! aResult)
191 *aResult = PR_FALSE;
196 rv = mFirstEnumerator->HasMoreElements(aResult);
199 if (*aResult)
205 rv = mSecondEnumerator->HasMoreElements(aResult);
208 if (*aResult)
211 *aResult = PR_FALSE;
217 nsUnionEnumerator::GetNext(nsISupports** aResult)
219 NS_PRECONDITION(aResult != 0, "null ptr");
220 if (! aResult)
227 return mFirstEnumerator->GetNext(aResult);
229 return mSecondEnumerator->GetNext(aResult);