зеркало из https://github.com/mozilla/pjs.git
Fix build bustage on HP-UX. Access to protected classes only allowed by 'friends'.
This commit is contained in:
Родитель
bbc2546716
Коммит
01e123053b
|
@ -223,6 +223,8 @@ public:
|
||||||
List* mCurrent;
|
List* mCurrent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mElements); }
|
ConstIterator First() const { return ConstIterator(mElements); }
|
||||||
ConstIterator Last() const { return ConstIterator(nsnull); }
|
ConstIterator Last() const { return ConstIterator(nsnull); }
|
||||||
|
|
||||||
|
@ -362,6 +364,8 @@ public:
|
||||||
List* mCurrent;
|
List* mCurrent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mBindings); }
|
ConstIterator First() const { return ConstIterator(mBindings); }
|
||||||
ConstIterator Last() const { return ConstIterator(nsnull); }
|
ConstIterator Last() const { return ConstIterator(nsnull); }
|
||||||
|
|
||||||
|
@ -503,6 +507,8 @@ public:
|
||||||
return mCurrent != aConstIterator.mCurrent; }
|
return mCurrent != aConstIterator.mCurrent; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
||||||
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(List*, &mHead)); }
|
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(List*, &mHead)); }
|
||||||
|
|
||||||
|
@ -543,6 +549,8 @@ public:
|
||||||
friend class InstantiationSet;
|
friend class InstantiationSet;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class Iterator;
|
||||||
|
|
||||||
Iterator First() { return Iterator(mHead.mNext); }
|
Iterator First() { return Iterator(mHead.mNext); }
|
||||||
Iterator Last() { return Iterator(&mHead); }
|
Iterator Last() { return Iterator(&mHead); }
|
||||||
|
|
||||||
|
|
|
@ -458,6 +458,8 @@ public:
|
||||||
return mCurrent != aConstIterator.mCurrent; }
|
return mCurrent != aConstIterator.mCurrent; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
||||||
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(MatchList*, &mHead)); }
|
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(MatchList*, &mHead)); }
|
||||||
|
|
||||||
|
@ -498,6 +500,8 @@ public:
|
||||||
friend class MatchSet;
|
friend class MatchSet;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class Iterator;
|
||||||
|
|
||||||
Iterator First() { return Iterator(mHead.mNext); }
|
Iterator First() { return Iterator(mHead.mNext); }
|
||||||
Iterator Last() { return Iterator(&mHead); }
|
Iterator Last() { return Iterator(&mHead); }
|
||||||
|
|
||||||
|
@ -794,6 +798,8 @@ public:
|
||||||
return mCurrent != aConstIterator.mCurrent; }
|
return mCurrent != aConstIterator.mCurrent; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
||||||
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(Entry*, &mHead)); }
|
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(Entry*, &mHead)); }
|
||||||
|
|
||||||
|
|
|
@ -223,6 +223,8 @@ public:
|
||||||
List* mCurrent;
|
List* mCurrent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mElements); }
|
ConstIterator First() const { return ConstIterator(mElements); }
|
||||||
ConstIterator Last() const { return ConstIterator(nsnull); }
|
ConstIterator Last() const { return ConstIterator(nsnull); }
|
||||||
|
|
||||||
|
@ -362,6 +364,8 @@ public:
|
||||||
List* mCurrent;
|
List* mCurrent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mBindings); }
|
ConstIterator First() const { return ConstIterator(mBindings); }
|
||||||
ConstIterator Last() const { return ConstIterator(nsnull); }
|
ConstIterator Last() const { return ConstIterator(nsnull); }
|
||||||
|
|
||||||
|
@ -503,6 +507,8 @@ public:
|
||||||
return mCurrent != aConstIterator.mCurrent; }
|
return mCurrent != aConstIterator.mCurrent; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
||||||
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(List*, &mHead)); }
|
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(List*, &mHead)); }
|
||||||
|
|
||||||
|
@ -543,6 +549,8 @@ public:
|
||||||
friend class InstantiationSet;
|
friend class InstantiationSet;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class Iterator;
|
||||||
|
|
||||||
Iterator First() { return Iterator(mHead.mNext); }
|
Iterator First() { return Iterator(mHead.mNext); }
|
||||||
Iterator Last() { return Iterator(&mHead); }
|
Iterator Last() { return Iterator(&mHead); }
|
||||||
|
|
||||||
|
|
|
@ -458,6 +458,8 @@ public:
|
||||||
return mCurrent != aConstIterator.mCurrent; }
|
return mCurrent != aConstIterator.mCurrent; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
||||||
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(MatchList*, &mHead)); }
|
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(MatchList*, &mHead)); }
|
||||||
|
|
||||||
|
@ -498,6 +500,8 @@ public:
|
||||||
friend class MatchSet;
|
friend class MatchSet;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class Iterator;
|
||||||
|
|
||||||
Iterator First() { return Iterator(mHead.mNext); }
|
Iterator First() { return Iterator(mHead.mNext); }
|
||||||
Iterator Last() { return Iterator(&mHead); }
|
Iterator Last() { return Iterator(&mHead); }
|
||||||
|
|
||||||
|
@ -794,6 +798,8 @@ public:
|
||||||
return mCurrent != aConstIterator.mCurrent; }
|
return mCurrent != aConstIterator.mCurrent; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
friend class ConstIterator;
|
||||||
|
|
||||||
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
ConstIterator First() const { return ConstIterator(mHead.mNext); }
|
||||||
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(Entry*, &mHead)); }
|
ConstIterator Last() const { return ConstIterator(NS_CONST_CAST(Entry*, &mHead)); }
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче