mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Make IndexOf a const method. Bug 174940, r=dougt, sr=alecf
This commit is contained in:
parent
06e7d3af45
commit
58a7681df2
@ -54,7 +54,7 @@ protected:
|
||||
nsCOMArray_base(PRInt32 aCount) : mArray(aCount) {}
|
||||
nsCOMArray_base(const nsCOMArray_base& other);
|
||||
|
||||
PRInt32 IndexOf(nsISupports* aObject) {
|
||||
PRInt32 IndexOf(nsISupports* aObject) const {
|
||||
return mArray.IndexOf(aObject);
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ class nsCOMArray : public nsCOMArray_base
|
||||
}
|
||||
|
||||
// index of the element in question.. does NOT refcount
|
||||
PRInt32 IndexOf(T* aObject) {
|
||||
PRInt32 IndexOf(T* aObject) const {
|
||||
return nsCOMArray_base::IndexOf(aObject);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user