mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 96108: Fix Win32/opt horkage (SizeOf()) in nsSmallVoidArray should be
#if dEBUG)
This commit is contained in:
parent
e4d4fd2a34
commit
03f3f59cf1
@ -1224,6 +1224,7 @@ nsSmallVoidArray::operator=(nsSmallVoidArray& other)
|
||||
return *this;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
nsSmallVoidArray::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const
|
||||
{
|
||||
@ -1238,6 +1239,7 @@ nsSmallVoidArray::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const
|
||||
*aResult = sizeof(*this) + size;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
PRInt32
|
||||
nsSmallVoidArray::GetArraySize() const
|
||||
|
@ -342,7 +342,9 @@ public:
|
||||
nsSmallVoidArray& operator=(nsSmallVoidArray& other);
|
||||
void* operator[](PRInt32 aIndex) const { return ElementAt(aIndex); }
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual void SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const;
|
||||
#endif
|
||||
PRInt32 GetArraySize() const;
|
||||
|
||||
PRInt32 Count() const;
|
||||
|
Loading…
Reference in New Issue
Block a user