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

Unified Diff: core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp

Issue 1915053006: Merge to M50: Add a missing initialisation for CPDF_ContentMarkItem. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@2661
Patch Set: Created 4 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp
index de3a6572f25d41d0a5ec86b99229df3618b6c419..827b9b8c6b020083662e6a8bddc42b4b6a1d22ab 100644
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp
@@ -587,9 +587,8 @@ void CPDF_AllStates::ProcessExtGS(CPDF_Dictionary* pGS,
}
pGeneralState->m_Matrix = m_CTM;
}
-CPDF_ContentMarkItem::CPDF_ContentMarkItem() {
- m_ParamType = None;
-}
+CPDF_ContentMarkItem::CPDF_ContentMarkItem()
+ : m_ParamType(None), m_pParam(nullptr) {}
CPDF_ContentMarkItem::CPDF_ContentMarkItem(const CPDF_ContentMarkItem& src) {
m_MarkName = src.m_MarkName;
m_ParamType = src.m_ParamType;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698