Bug 882616 - Fix build warnings in docshell/base; r=bz

This commit is contained in:
Ms2ger
2013-06-23 09:15:05 +02:00
parent dd4a6f07d4
commit 6f6c0983a6
3 changed files with 14 additions and 8 deletions

View File

@@ -10,6 +10,7 @@
#include "mozilla/Attributes.h"
#include "mozilla/AutoRestore.h"
#include "mozilla/Casting.h"
#include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/TabChild.h"
@@ -809,7 +810,7 @@ nsDocShell::nsDocShell():
++gNumberOfDocShells;
if (!PR_GetEnv("MOZ_QUIET")) {
printf("++DOCSHELL %p == %ld [id = %llu]\n", (void*) this,
gNumberOfDocShells, mHistoryID);
gNumberOfDocShells, SafeCast<unsigned long long>(mHistoryID));
}
#endif
}
@@ -838,7 +839,7 @@ nsDocShell::~nsDocShell()
--gNumberOfDocShells;
if (!PR_GetEnv("MOZ_QUIET")) {
printf("--DOCSHELL %p == %ld [id = %llu]\n", (void*) this,
gNumberOfDocShells, mHistoryID);
gNumberOfDocShells, SafeCast<unsigned long long>(mHistoryID));
}
#endif
}