From 0f6425fff33e4096b4e1fbfb954edae1349c0145 Mon Sep 17 00:00:00 2001 From: ochang Date: Thu, 21 Apr 2016 12:23:51 -0700 Subject: Add a missing initialisation for CPDF_ContentMarkItem. R=dsinclair@chromium.org BUG=chromium:605491 Review URL: https://codereview.chromium.org/1910143002 --- core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp b/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp index 3b7a60c059..f44972568d 100644 --- a/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp +++ b/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp @@ -8,9 +8,8 @@ #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" -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; -- cgit v1.2.3