use a empty PRUnichar instead of NS_L

git-svn-id: svn://10.0.0.236/trunk@188652 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%pavlov.net
2006-02-01 07:12:38 +00:00
parent 0ce0d5ae61
commit 8d359ea00c

View File

@@ -604,9 +604,10 @@ nsThebesDeviceContext::BeginDocument(PRUnichar* aTitle,
PRInt32 aStartPage,
PRInt32 aEndPage)
{
static const PRUnichar kEmpty[] = { '\0' };
nsRefPtr<gfxContext> 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;
}