Clean up to compile on egcs.
git-svn-id: svn://10.0.0.236/trunk@71967 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5369568bb9
commit
e5e5ed66d1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user