From 8d359ea00c4e600e21a6015dd82046dafbb41d63 Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Wed, 1 Feb 2006 07:12:38 +0000 Subject: [PATCH] use a empty PRUnichar instead of NS_L git-svn-id: svn://10.0.0.236/trunk@188652 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }