[poppler] poppler/PSOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jul 6 01:03:25 PDT 2011


 poppler/PSOutputDev.cc |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 6b62fb7e9bd7de7f79b9b9a6fe36a5f5da099133
Author: William Bader <williambader at hotmail.com>
Date:   Mon Jun 27 19:38:52 2011 +0100

    Remove unused variable

diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index 0db9364..501cff0 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -2986,7 +2986,6 @@ GBool PSOutputDev::checkPageSlice(Page *page, double /*hDPI*/, double /*vDPI*/,
   GfxState *state;
   SplashBitmap *bitmap;
   Stream *str0, *str;
-  Stream *str1 = NULL;
   Object obj;
   Guchar *p;
   Guchar col[4];
@@ -3240,8 +3239,7 @@ GBool PSOutputDev::checkPageSlice(Page *page, double /*hDPI*/, double /*vDPI*/,
     str0->reset();
     if (isGray) {
       writePS("/DeviceGray setcolorspace\n");
-      str1 = new CMKYGrayEncoder(str0);
-      str = new RunLengthEncoder(str1);
+      str = new RunLengthEncoder(new CMKYGrayEncoder(str0));
     } else {
       processColors |= psProcessCMYK;
       writePS("/DeviceCMYK setcolorspace\n");
@@ -3295,7 +3293,6 @@ GBool PSOutputDev::checkPageSlice(Page *page, double /*hDPI*/, double /*vDPI*/,
     }
     str->close();
     delete str;
-    // delete str1; // deleted by str0
     delete str0;
     break;
   case psLevel2:


More information about the poppler mailing list