diff options
author | Oliver Chang <ochang@chromium.org> | 2016-04-26 10:50:27 -0700 |
---|---|---|
committer | Oliver Chang <ochang@chromium.org> | 2016-04-26 10:50:27 -0700 |
commit | 5b8bb318382ac131569d2d7c06fd56673e33f381 (patch) | |
tree | 8ece9f4f504c9835e08699c54f1611d776341fae | |
parent | c55fa129c73f4f52ca9d34e12f0e00ec16abf774 (diff) | |
download | pdfium-5b8bb318382ac131569d2d7c06fd56673e33f381.tar.xz |
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 .
-rw-r--r-- | core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp | 5 |
1 files 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; |