Index: fpdfsdk/fpdfppo.cpp |
diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp |
index 94fa6bae84fe0398f19b3d1a8c5430fb6af544a9..f7855c9e8cab6678743e857fba475c5be02a7d3f 100644 |
--- a/fpdfsdk/fpdfppo.cpp |
+++ b/fpdfsdk/fpdfppo.cpp |
@@ -65,7 +65,7 @@ FX_BOOL CPDF_PageOrganizer::PDFDocInit(CPDF_Document* pDestPDFDoc, |
// Set type |
CFX_ByteString cbRootType = pNewRoot->GetStringBy("Type", ""); |
- if (cbRootType.Equal("")) { |
+ if (cbRootType == "") { |
Lei Zhang
2016/04/01 01:02:36
Replace with IsEmpty()?
Tom Sepez
2016/04/01 17:06:12
Done.
|
pNewRoot->SetAt("Type", new CPDF_Name("Catalog")); |
} |
@@ -79,7 +79,7 @@ FX_BOOL CPDF_PageOrganizer::PDFDocInit(CPDF_Document* pDestPDFDoc, |
} |
CFX_ByteString cbPageType = pNewPages->GetStringBy("Type", ""); |
- if (cbPageType.Equal("")) { |
+ if (cbPageType == "") { |
pNewPages->SetAt("Type", new CPDF_Name("Pages")); |
} |