diff --git a/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp b/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp index 1e140d999d5..e74b743d45a 100644 --- a/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp +++ b/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp @@ -604,9 +604,10 @@ nsThebesDeviceContext::BeginDocument(PRUnichar* aTitle, PRInt32 aStartPage, PRInt32 aEndPage) { + static const PRUnichar kEmpty[] = { '\0' }; nsRefPtr thebes = new gfxContext(mPrintingSurface); - thebes->BeginPrinting(nsDependentString(aTitle ? aTitle : (PRUnichar*)NS_L("")), - nsDependentString(aPrintToFileName ? aPrintToFileName : (PRUnichar*)NS_L(""))); + thebes->BeginPrinting(nsDependentString(aTitle ? aTitle : kEmpty), + nsDependentString(aPrintToFileName ? aPrintToFileName : kEmpty)); return NS_OK; }