Bug 746983 - Remove unused local variable in nsDeviceContextAndroid, clean up whitespace, and fix grammar in comment. r=blassey
authorGlenna Buford <glennaL.buford@gmail.com>
Fri, 26 Apr 2013 10:10:59 -0400
changeset 141009 071c52001f05e3c93aa7b7737d5be4fa1d92a12b
parent 141008 41ed2304c7ba325b9057d7377e9ed17b5cf9968c
child 141010 0b68d19943c1e4f94bd4a14e652503df516b6173
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs746983
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 746983 - Remove unused local variable in nsDeviceContextAndroid, clean up whitespace, and fix grammar in comment. r=blassey
widget/android/nsDeviceContextAndroid.cpp
--- a/widget/android/nsDeviceContextAndroid.cpp
+++ b/widget/android/nsDeviceContextAndroid.cpp
@@ -10,38 +10,37 @@
 #include "nsIPrintSettings.h"
 #include "nsDirectoryServiceDefs.h"
 
 NS_IMPL_ISUPPORTS1(nsDeviceContextSpecAndroid, nsIDeviceContextSpec)
 
 NS_IMETHODIMP
 nsDeviceContextSpecAndroid::GetSurfaceForPrinter(gfxASurface** aSurface)
 {
-  nsAutoCString tmpDir(getenv("TMPDIR"));
-  nsresult rv = 
+  nsresult rv =
     NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(mTempFile));
   NS_ENSURE_SUCCESS(rv, rv);
-  
-  nsAutoCString 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);  
-  
+  NS_ENSURE_SUCCESS(rv, rv);
+
   nsCOMPtr<nsIFileOutputStream> stream = do_CreateInstance("@mozilla.org/network/file-output-stream;1");
   rv = stream->Init(mTempFile, -1, -1, 0);
-  NS_ENSURE_SUCCESS(rv, rv);  
+  NS_ENSURE_SUCCESS(rv, rv);
 
   nsRefPtr<gfxASurface> surface;
 
-  // XXX: what should we do hear for size? screen size?
+  // XXX: what should we do here for size? screen size?
   gfxSize surfaceSize(480, 800);
 
   surface = new gfxPDFSurface(stream, surfaceSize);
-  
-  
+
+
   NS_ABORT_IF_FALSE(surface, "valid address expected");
   surface.swap(*aSurface);
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsDeviceContextSpecAndroid::Init(nsIWidget* aWidget,
                              nsIPrintSettings* aPS,