Bug 801803: Followup to convert 2 more call sites r=me

This commit is contained in:
David Zbarsky 2012-10-15 17:39:46 -04:00
parent 7594ec1116
commit 428c858534
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@
#include "nsString.h"
#include "nsStringFwd.h"
#define TEST_RESULT(r) { if (NS_FAILED(r)) {printf("FAILURE result=%X\n", r); return r; } }
#define TEST_RESULT(r) { if (NS_FAILED(r)) {printf("FAILURE result=%X\n", static_cast<uint32_t>(r)); return r; } }
#define TEST_POINTER(p) { if (!p) {printf("FAILURE null pointer\n"); return NS_ERROR_NULL_POINTER; } }
TextEditorTest::TextEditorTest()

View File

@ -1228,7 +1228,8 @@ nsHTMLEditor::ReplaceHeadContentsWithHTML(const nsAString& aSourceToInsert)
if (NS_FAILED(res))
{
#ifdef DEBUG
printf("Couldn't create contextual fragment: error was %d\n", res);
printf("Couldn't create contextual fragment: error was %X\n",
static_cast<uint32_t>(res));
#endif
return res;
}