Index: fpdfsdk/fpdfppo.cpp |
diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp |
index 85dba5e9750f5f45d9b03cc5d4a71a760c78f186..3432fb6e6eac727b42076205f915a4738ee97668 100644 |
--- a/fpdfsdk/fpdfppo.cpp |
+++ b/fpdfsdk/fpdfppo.cpp |
@@ -223,17 +223,12 @@ FX_BOOL CPDF_PageOrganizer::UpdateReference(CPDF_Object* pObj, |
const CFX_ByteString& key = it->first; |
CPDF_Object* pNextObj = it->second; |
++it; |
- if (!FXSYS_strcmp(key.c_str(), "Parent") || |
- !FXSYS_strcmp(key.c_str(), "Prev") || |
- !FXSYS_strcmp(key.c_str(), "First")) { |
+ if (key == "Parent" || key == "Prev" || key == "First") |
continue; |
- } |
- if (pNextObj) { |
- if (!UpdateReference(pNextObj, pDoc, pObjNumberMap)) |
- pDict->RemoveAt(key); |
- } else { |
+ if (!pNextObj) |
return FALSE; |
- } |
+ if (!UpdateReference(pNextObj, pDoc, pObjNumberMap)) |
+ pDict->RemoveAt(key); |
} |
break; |
} |