Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg

This commit is contained in:
Randell Jesup
2012-09-01 22:35:17 -04:00
parent 360ad91182
commit 3b4961b603
617 changed files with 2504 additions and 2504 deletions

View File

@@ -15,12 +15,12 @@ NS_IMPL_ISUPPORTS1(nsDeviceContextSpecAndroid, nsIDeviceContextSpec)
NS_IMETHODIMP
nsDeviceContextSpecAndroid::GetSurfaceForPrinter(gfxASurface** aSurface)
{
nsCAutoString tmpDir(getenv("TMPDIR"));
nsAutoCString tmpDir(getenv("TMPDIR"));
nsresult rv =
NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(mTempFile));
NS_ENSURE_SUCCESS(rv, rv);
nsCAutoString filename("tmp-printing.pdf");
nsAutoCString filename("tmp-printing.pdf");
mTempFile->AppendNative(filename);
rv = mTempFile->CreateUnique(nsIFile::NORMAL_FILE_TYPE, 0660);
NS_ENSURE_SUCCESS(rv, rv);