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

This commit is contained in:
Daniel Holbert 2010-01-17 15:11:02 -08:00
parent f501eed612
commit aaf973be9a
2 changed files with 3 additions and 2 deletions

View File

@ -233,7 +233,7 @@ nsTextNode::List(FILE* out, PRInt32 aIndent) const
PRInt32 index;
for (index = aIndent; --index >= 0; ) fputs(" ", out);
fprintf(out, "Text@%p", this);
fprintf(out, "Text@%p", static_cast<const void*>(this));
fprintf(out, " intrinsicstate=[%08x]", IntrinsicState());
fprintf(out, " refcount=%d<", mRefCnt.get());

View File

@ -151,7 +151,8 @@ NS_IMETHODIMP
nsSVGStringProxyValue::SetValueString(const nsAString& aValue)
{
#ifdef DEBUG
printf("nsSVGStringProxyValue(%p)::SetValueString(%s)\n", this, NS_ConvertUTF16toUTF8(aValue).get());
printf("nsSVGStringProxyValue(%p)::SetValueString(%s)\n",
static_cast<void*>(this), NS_ConvertUTF16toUTF8(aValue).get());
#endif
if (NS_FAILED(mProxiedValue->SetValueString(aValue))) {
#ifdef DEBUG