Updated SizeOf methods to not waste space when doing a non-debug build
git-svn-id: svn://10.0.0.236/trunk@45397 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1185,14 +1185,16 @@ nsTableOuterFrame::GetFrameName(nsString& aResult) const
|
||||
return MakeFrameName("TableOuter", aResult);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsTableOuterFrame::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const
|
||||
{
|
||||
if (aResult) {
|
||||
PRUint32 sum = sizeof(*this);
|
||||
// XXX write me
|
||||
*aResult = sum;
|
||||
return NS_OK;
|
||||
if (!aResult) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
PRUint32 sum = sizeof(*this);
|
||||
// XXX write me
|
||||
*aResult = sum;
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user