зеркало из https://github.com/mozilla/gecko-dev.git
Clean up to compile on egcs.
This commit is contained in:
Родитель
a339f479a5
Коммит
b592bfb398
|
@ -289,7 +289,7 @@ nsVoidBTree::InsertElementAt(void* aElement, PRInt32 aIndex)
|
|||
// We're still in the index. Find the right leaf.
|
||||
Node* next = nsnull;
|
||||
|
||||
PRInt32 count = current->GetCount();
|
||||
count = current->GetCount();
|
||||
for (PRInt32 i = 0; i < count; ++i) {
|
||||
Node* child = NS_REINTERPRET_CAST(Node*, current->GetElementAt(i));
|
||||
|
||||
|
@ -422,7 +422,7 @@ nsVoidBTree::RemoveElementAt(PRInt32 aIndex)
|
|||
// We're still in the index. Find the right leaf.
|
||||
Node* next = nsnull;
|
||||
|
||||
PRInt32 count = current->GetCount();
|
||||
count = current->GetCount();
|
||||
for (PRInt32 i = 0; i < count; ++i) {
|
||||
Node* child = NS_REINTERPRET_CAST(Node*, current->GetElementAt(i));
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ protected:
|
|||
void InsertElementAt(void* aElement, PRInt32 aIndex);
|
||||
void RemoveElementAt(PRInt32 aIndex);
|
||||
|
||||
private:
|
||||
protected:
|
||||
// XXX Not to be implemented
|
||||
Node();
|
||||
~Node();
|
||||
|
@ -272,14 +272,14 @@ public:
|
|||
public:
|
||||
ConstIterator() : mIsSingleton(PR_TRUE), mElement(nsnull) {}
|
||||
|
||||
ConstIterator(ConstIterator& aOther) : mIsSingleton(aOther.mIsSingleton) {
|
||||
ConstIterator(const ConstIterator& aOther) : mIsSingleton(aOther.mIsSingleton) {
|
||||
if (mIsSingleton)
|
||||
mElement = aOther.mElement;
|
||||
else
|
||||
mPath = aOther.mPath; }
|
||||
|
||||
ConstIterator&
|
||||
operator=(ConstIterator& aOther) {
|
||||
operator=(const ConstIterator& aOther) {
|
||||
mIsSingleton = aOther.mIsSingleton;
|
||||
if (mIsSingleton)
|
||||
mElement = aOther.mElement;
|
||||
|
@ -308,7 +308,7 @@ public:
|
|||
ConstIterator operator--(int) {
|
||||
ConstIterator temp(*this);
|
||||
Prev();
|
||||
return *this; }
|
||||
return temp; }
|
||||
|
||||
PRBool operator==(const ConstIterator& aOther) const {
|
||||
return mIsSingleton ? mElement == aOther.mElement
|
||||
|
|
Загрузка…
Ссылка в новой задаче