From 92c8b1a07b01f428ec3f2b6d04acc109bfdeb3da Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 11 Dec 2017 14:51:47 +0000 Subject: Initialize FDE_TEXTEDITPIECE. BUG=pdfium:958 Change-Id: I7c17c327db974dacbeb3577d79c9522de348c78e Reviewed-on: https://pdfium-review.googlesource.com/20730 Reviewed-by: dsinclair Commit-Queue: dsinclair --- xfa/fde/cfde_texteditengine.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xfa/fde') diff --git a/xfa/fde/cfde_texteditengine.h b/xfa/fde/cfde_texteditengine.h index 43cfe0c0d3..5decc18ab6 100644 --- a/xfa/fde/cfde_texteditengine.h +++ b/xfa/fde/cfde_texteditengine.h @@ -23,11 +23,11 @@ struct FDE_TEXTEDITPIECE { FDE_TEXTEDITPIECE(const FDE_TEXTEDITPIECE& that); ~FDE_TEXTEDITPIECE(); - int32_t nStart; - int32_t nCount; - int32_t nBidiLevel; + int32_t nStart = 0; + int32_t nCount = 0; + int32_t nBidiLevel = 0; CFX_RectF rtPiece; - uint32_t dwCharStyles; + uint32_t dwCharStyles = 0; }; inline FDE_TEXTEDITPIECE::FDE_TEXTEDITPIECE() = default; -- cgit v1.2.3