зеркало из https://github.com/mozilla/gecko-dev.git
Make IndexOf a const method. Bug 174940, r=dougt, sr=alecf
This commit is contained in:
Родитель
e7a258a922
Коммит
883abcac44
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче