Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: fpdfsdk/fpdfppo.cpp

Issue 1846083002: Remove CFX_{Byte,Wide}String::Equal in favor of "==". (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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"));
}

Powered by Google App Engine
This is Rietveld 408576698