summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2016-04-26 15:39:49 -0700
committerOliver Chang <ochang@chromium.org>2016-04-26 15:39:49 -0700
commit58340b0f837343671f1eb033371a41441eae80cd (patch)
tree6aeb5d71cd982c73a5a096eafc7528adaeb88b78
parent96475ebf2265255d48e8e71928fc628777f9399f (diff)
downloadpdfium-chromium/2661.tar.xz
Merge to M50: Add a missing initialisation for CPDF_ContentMarkItem.chromium/2661
TBR=dsinclair@chromium.org BUG=chromium:605491 Original Review: https://codereview.chromium.org/1910143002 Review URL: https://codereview.chromium.org/1915053006 .
-rw-r--r--core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp5
1 files changed, 2 insertions, 3 deletions
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 de3a6572f2..827b9b8c6b 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;