зеркало из https://github.com/mozilla/gecko-dev.git
Didn't actually change anything. Just moved two functions up higher in the
file to make the Solaris compiler happy...
This commit is contained in:
Родитель
b736eb7c8c
Коммит
75462f79f1
|
@ -305,6 +305,24 @@ nsDST::~nsDST()
|
|||
mArena->Release();
|
||||
}
|
||||
|
||||
// Called by Remove() to destroy a node. Explicitly calls the destructor
|
||||
// and then asks the memory arena to free the memory
|
||||
inline void
|
||||
nsDST::DestroyNode(LeafNode* aLeafNode)
|
||||
{
|
||||
aLeafNode->~LeafNode(); // call destructor
|
||||
mArena->FreeNode(aLeafNode); // free memory
|
||||
}
|
||||
|
||||
// Called by Remove() to destroy a node. Explicitly calls the destructor
|
||||
// and then asks the memory arena to free the memory
|
||||
inline void
|
||||
nsDST::DestroyNode(TwoNode* aTwoNode)
|
||||
{
|
||||
aTwoNode->~TwoNode(); // call destructor
|
||||
mArena->FreeNode(aTwoNode); // free memory
|
||||
}
|
||||
|
||||
void
|
||||
nsDST::FreeTree(LeafNode* aNode)
|
||||
{
|
||||
|
@ -360,24 +378,6 @@ keepLooping:
|
|||
}
|
||||
}
|
||||
|
||||
// Called by Remove() to destroy a node. Explicitly calls the destructor
|
||||
// and then asks the memory arena to free the memory
|
||||
inline void
|
||||
nsDST::DestroyNode(LeafNode* aLeafNode)
|
||||
{
|
||||
aLeafNode->~LeafNode(); // call destructor
|
||||
mArena->FreeNode(aLeafNode); // free memory
|
||||
}
|
||||
|
||||
// Called by Remove() to destroy a node. Explicitly calls the destructor
|
||||
// and then asks the memory arena to free the memory
|
||||
inline void
|
||||
nsDST::DestroyNode(TwoNode* aTwoNode)
|
||||
{
|
||||
aTwoNode->~TwoNode(); // call destructor
|
||||
mArena->FreeNode(aTwoNode); // free memory
|
||||
}
|
||||
|
||||
nsDST::LeafNode*
|
||||
nsDST::ConvertToLeafNode(TwoNode** aTwoNode)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче