Index: core/fpdfapi/fpdf_parser/cpdf_document.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
index 13d9737b5b134a79d327b0b597554c8221e9b7b4..79965a23bbf53cd009634a9faffff1623c87902f 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
@@ -394,9 +394,10 @@ int InsertDeletePDFPage(CPDF_Document* pDoc, |
} else { |
int nPages = pKid->GetIntegerBy("Count"); |
if (nPagesToGo < nPages) { |
- if (pdfium::ContainsValue(*pVisited, pKid)) |
+ if (pdfium::ContainsKey(*pVisited, pKid)) |
return -1; |
- pdfium::ScopedSetInsertion<CPDF_Dictionary*>(pVisited, pKid); |
+ |
+ pdfium::ScopedSetInsertion<CPDF_Dictionary*> insertion(pVisited, pKid); |
Lei Zhang
2016/05/23 16:23:20
Umm, not sure what happened here.
Tom Sepez
2016/05/23 16:33:04
Argh. Well, at least it existed until the ; at eo
|
if (InsertDeletePDFPage(pDoc, pKid, nPagesToGo, pPage, bInsert, |
pVisited) < 0) { |
return -1; |