Support comments and blank lines in SUPPRESSIONS file
[pdfium.git] / fpdfsdk / src / fpdfppo.cpp
index b8d2125..c68ae68 100644 (file)
@@ -49,12 +49,7 @@ FX_BOOL CPDF_PageOrganizer::PDFDocInit(CPDF_Document *pDestPDFDoc, CPDF_Document
                return FALSE;
        
        CFX_ByteString producerstr;
-       
-#ifdef FOXIT_CHROME_BUILD
-       producerstr.Format("Google");
-#else
-        producerstr.Format("Foxit PDF SDK %s - Foxit Corporation", "2.0");
-#endif
+       producerstr.Format("PDFium");
        DInfoDict->SetAt("Producer", new CPDF_String(producerstr));
 
        //Set type////////////////////////////////////////////////////////////////
@@ -313,9 +308,17 @@ int        CPDF_PageOrganizer::GetNewObjId(CPDF_Document *pDoc, CFX_MapPtrToPtr* pMapPt
        }
        else
        {
-               CPDF_Object* pClone  = pRef->GetDirect()->Clone();
-               if(!pClone)                     
+               CPDF_Object* pDirect = pRef->GetDirect();
+               if(!pDirect)
+               {
                        return 0;
+               }
+
+               CPDF_Object* pClone = pDirect->Clone();
+               if(!pClone)
+               {
+                       return 0;
+               }
                
                if(pClone->GetType() == PDFOBJ_DICTIONARY)
                {