Bug 539585: Fix "warning: format '%p' expects type 'void*'" in layout directory. r=dbaron

This commit is contained in:
Daniel Holbert 2010-01-17 15:11:06 -08:00
parent 40f5cf3a1c
commit 41a9eb240f
2 changed files with 5 additions and 3 deletions

View File

@ -879,7 +879,8 @@ CSSImportantRule::List(FILE* out, PRInt32 aIndent) const
// Indent
for (PRInt32 index = aIndent; --index >= 0; ) fputs(" ", out);
fprintf(out, "! Important rule block=%p\n", mImportantBlock.get());
fprintf(out, "! Important rule block=%p\n",
static_cast<void*>(mImportantBlock.get()));
return NS_OK;
}
#endif

View File

@ -3472,7 +3472,8 @@ nsTableFrame::DumpRowGroup(nsIFrame* aKidFrame)
while (cFrame) {
nsTableRowFrame *rowFrame = do_QueryFrame(cFrame);
if (rowFrame) {
printf("row(%d)=%p ", rowFrame->GetRowIndex(), rowFrame);
printf("row(%d)=%p ", rowFrame->GetRowIndex(),
static_cast<void*>(rowFrame));
nsIFrame* childFrame = cFrame->GetFirstChild(nsnull);
while (childFrame) {
nsTableCellFrame *cellFrame = do_QueryFrame(childFrame);
@ -3523,7 +3524,7 @@ nsTableFrame::Dump(PRBool aDumpRows,
if (0 == (colX % 8)) {
printf("\n");
}
printf ("%d=%p ", colX, colFrame);
printf ("%d=%p ", colX, static_cast<void*>(colFrame));
nsTableColType colType = colFrame->GetColType();
switch (colType) {
case eColContent: