We don't pass references to 'interfaces' in general, so let's not do it here either. r=bryner@netscape.com. sr=jaggernaut@netscape.com

git-svn-id: svn://10.0.0.236/trunk@110248 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2001-12-11 09:03:38 +00:00
parent 276442e553
commit c5768c0dba
11 changed files with 32 additions and 32 deletions

View File

@@ -2072,7 +2072,7 @@ nsGenericElement::GetBaseTarget(nsAWritableString& aBaseTarget) const
}
nsresult
nsGenericElement::RangeAdd(nsIDOMRange& aRange)
nsGenericElement::RangeAdd(nsIDOMRange* aRange)
{
if (!mDOMSlots)
GetDOMSlots();
@@ -2087,7 +2087,7 @@ nsGenericElement::RangeAdd(nsIDOMRange& aRange)
// Make sure we don't add a range that is already
// in the list!
PRInt32 i = mDOMSlots->mRangeList->IndexOf(&aRange);
PRInt32 i = mDOMSlots->mRangeList->IndexOf(aRange);
if (i >= 0) {
// Range is already in the list, so there
// is nothing to do!
@@ -2095,7 +2095,7 @@ nsGenericElement::RangeAdd(nsIDOMRange& aRange)
}
// dont need to addref - this call is made by the range object itself
PRBool rv = mDOMSlots->mRangeList->AppendElement(&aRange);
PRBool rv = mDOMSlots->mRangeList->AppendElement(aRange);
if (rv)
return NS_OK;
@@ -2104,11 +2104,11 @@ nsGenericElement::RangeAdd(nsIDOMRange& aRange)
nsresult
nsGenericElement::RangeRemove(nsIDOMRange& aRange)
nsGenericElement::RangeRemove(nsIDOMRange* aRange)
{
if (mDOMSlots && mDOMSlots->mRangeList) {
// dont need to release - this call is made by the range object itself
PRBool rv = mDOMSlots->mRangeList->RemoveElement(&aRange);
PRBool rv = mDOMSlots->mRangeList->RemoveElement(aRange);
if (rv) {
if (mDOMSlots->mRangeList->Count() == 0) {
delete mDOMSlots->mRangeList;