mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
parent
0a50553673
commit
8358e22731
1 changed files with 73 additions and 19 deletions
|
|
@ -857,29 +857,47 @@ class nsLineList_iterator {
|
|||
return --copy;
|
||||
}
|
||||
|
||||
// Passing by value rather than by reference and reference to const
|
||||
// to keep AIX happy.
|
||||
bool operator==(const iterator_self_type aOther) const
|
||||
bool operator==(const iterator_self_type& aOther) const
|
||||
{
|
||||
MOZ_ASSERT(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(const iterator_self_type aOther) const
|
||||
bool operator!=(const iterator_self_type& aOther) const
|
||||
{
|
||||
MOZ_ASSERT(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
bool operator==(const iterator_self_type aOther)
|
||||
bool operator==(const iterator_self_type& aOther)
|
||||
{
|
||||
MOZ_ASSERT(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(const iterator_self_type aOther)
|
||||
bool operator!=(const iterator_self_type& aOther)
|
||||
{
|
||||
MOZ_ASSERT(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
|
||||
bool operator==(iterator_self_type& aOther) const
|
||||
{
|
||||
MOZ_ASSERT(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(iterator_self_type& aOther) const
|
||||
{
|
||||
MOZ_ASSERT(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
bool operator==(iterator_self_type& aOther)
|
||||
{
|
||||
MOZ_ASSERT(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(iterator_self_type& aOther)
|
||||
{
|
||||
MOZ_ASSERT(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
|
||||
private:
|
||||
link_type *mCurrent;
|
||||
#ifdef DEBUG
|
||||
|
|
@ -992,24 +1010,42 @@ class nsLineList_reverse_iterator {
|
|||
}
|
||||
#endif /* !__MWERKS__ */
|
||||
|
||||
// Passing by value rather than by reference and reference to const
|
||||
// to keep AIX happy.
|
||||
bool operator==(const iterator_self_type aOther) const
|
||||
bool operator==(const iterator_self_type& aOther) const
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(const iterator_self_type aOther) const
|
||||
bool operator!=(const iterator_self_type& aOther) const
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
bool operator==(const iterator_self_type aOther)
|
||||
bool operator==(const iterator_self_type& aOther)
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(const iterator_self_type aOther)
|
||||
bool operator!=(const iterator_self_type& aOther)
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
bool operator==(iterator_self_type& aOther) const
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(iterator_self_type& aOther) const
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
bool operator==(iterator_self_type& aOther)
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(iterator_self_type& aOther)
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
|
|
@ -1126,24 +1162,42 @@ class nsLineList_const_iterator {
|
|||
return --copy;
|
||||
}
|
||||
|
||||
// Passing by value rather than by reference and reference to const
|
||||
// to keep AIX happy.
|
||||
bool operator==(const iterator_self_type aOther) const
|
||||
bool operator==(const iterator_self_type& aOther) const
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(const iterator_self_type aOther) const
|
||||
bool operator!=(const iterator_self_type& aOther) const
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
bool operator==(const iterator_self_type aOther)
|
||||
bool operator==(const iterator_self_type& aOther)
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(const iterator_self_type aOther)
|
||||
bool operator!=(const iterator_self_type& aOther)
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
bool operator==(iterator_self_type& aOther) const
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(iterator_self_type& aOther) const
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
}
|
||||
bool operator==(iterator_self_type& aOther)
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent == aOther.mCurrent;
|
||||
}
|
||||
bool operator!=(iterator_self_type& aOther)
|
||||
{
|
||||
NS_ASSERTION(mListLink == aOther.mListLink, "comparing iterators over different lists");
|
||||
return mCurrent != aOther.mCurrent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue