nsresult result(NS_OK); mBatching--; NS_ASSERTION(mBatching >=0,"Bad mBatching"); if (mBatching == 0 && mChangesDuringBatching){ mChangesDuringBatching = PR_FALSE; NotifySelectionListeners(); } return result;
return mRangeList->EndBatchChanges();
nsRangeList::EndBatchChanges(){  nsresult result(NS_OK);  mBatching--;  NS_ASSERTION(mBatching >=0,"Bad mBatching");  if (mBatching == 0 && mChangesDuringBatching){    mChangesDuringBatching = PR_FALSE;    NotifySelectionListeners();  }  return result;}