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

Unified Diff: core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp

Issue 1910143002: Add a missing initialisation for CPDF_ContentMarkItem. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
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/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp
diff --git a/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp b/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp
index 3b7a60c059af26d2c810da376d78134f53e88718..f44972568d37a81290f6581a7d7bd5d03eda3ca0 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;
« 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