зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1257410 - Use %p and cast in printf to avoid C4477 on VS2015; r=khuey
MozReview-Commit-ID: 21XrhzPiJFQ --HG-- extra : rebase_source : a9375998fcf663bf2b285cc2105778836eedffa8
This commit is contained in:
Родитель
9a0f2f15ea
Коммит
b19cc22cce
|
@ -54,7 +54,7 @@ MozExternalRefCountType nsTestCom::AddRef()
|
|||
{
|
||||
nsrefcnt res = ++mRefCnt;
|
||||
NS_LOG_ADDREF(this, mRefCnt, "nsTestCom", sizeof(*this));
|
||||
printf("nsTestCom: Adding ref = %d\n", res);
|
||||
printf("nsTestCom: Adding ref = %p\n", (void *)res);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ MozExternalRefCountType nsTestCom::Release()
|
|||
{
|
||||
nsrefcnt res = --mRefCnt;
|
||||
NS_LOG_RELEASE(this, mRefCnt, "nsTestCom");
|
||||
printf("nsTestCom: Releasing = %d\n", res);
|
||||
printf("nsTestCom: Releasing = %p\n", (void *)res);
|
||||
if (res == 0) {
|
||||
delete this;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче