Bug 96108: Fix Win32/opt horkage (SizeOf()) in nsSmallVoidArray should be

#if dEBUG)
This commit is contained in:
rjesup%wgate.com 2001-12-21 02:06:03 +00:00
parent e4d4fd2a34
commit 03f3f59cf1
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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;