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

Unified Diff: pdf/pdfium/pdfium_engine.h

Issue 2455453002: Remove stl_util's deletion function use from pdf/. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.h
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index 89406c7dd3711fe807e51cd136efd61fcbd53f40..8f8609ad623b15b5cf702b85338b87ce16ca402c 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -620,10 +620,8 @@ class PDFiumEngine : public PDFEngine,
// on the page.
FPDF_FORMHANDLE form_;
- // The page(s) of the document. Store a vector of pointers so that when the
- // vector is resized we don't close the pages that are used in pending
- // paints.
- std::vector<PDFiumPage*> pages_;
+ // The page(s) of the document.
+ std::vector<std::unique_ptr<PDFiumPage>> pages_;
// The indexes of the pages currently visible.
std::vector<int> visible_pages_;
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698