nsresult result;
*aFocusOffset = nsnull; if(!mAnchorFocusRange) return NS_OK;  nsresult result;
NS_IMETHODIMP nsDOMSelection::GetFocusOffset(PRInt32* aFocusOffset){	if (!aFocusOffset || !mAnchorFocusRange)		return NS_ERROR_NULL_POINTER;  nsresult result;  if (GetDirection() == eDirNext){    result = mAnchorFocusRange->GetEndOffset(aFocusOffset);  }  else{    result = mAnchorFocusRange->GetStartOffset(aFocusOffset);  }	return result;}