From 5b8bb318382ac131569d2d7c06fd56673e33f381 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 26 Apr 2016 10:50:27 -0700 Subject: Merge to M51: Add a missing initialisation for CPDF_ContentMarkItem. R=dsinclair@chromium.org TBR=dsinclair@chromium.org BUG=chromium:605491 Original Review URL: https://codereview.chromium.org/1910143002 (cherry picked from commit 0f6425fff33e4096b4e1fbfb954edae1349c0145) Review URL: https://codereview.chromium.org/1921003005 . --- 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