From 643266cc8eb98ac680d838a2c5bc2dc8c25a9b08 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 4 Oct 2017 11:14:52 -0700 Subject: Explicitly return std::vector in CFDE_TextEditEngine. Some build configurations do not like the {} variant. Change-Id: I32f5a18e5b41b628d6b45ec5eb9b26eded5b7d9c Reviewed-on: https://pdfium-review.googlesource.com/15450 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- xfa/fde/cfde_texteditengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fde') diff --git a/xfa/fde/cfde_texteditengine.cpp b/xfa/fde/cfde_texteditengine.cpp index a240132ec0..2bcd1fc9de 100644 --- a/xfa/fde/cfde_texteditengine.cpp +++ b/xfa/fde/cfde_texteditengine.cpp @@ -926,7 +926,7 @@ size_t CFDE_TextEditEngine::GetIndexForPoint(const CFX_PointF& point) { std::vector CFDE_TextEditEngine::GetCharRects( const FDE_TEXTEDITPIECE& piece) { if (piece.nCount < 1) - return {}; + return std::vector(); FX_TXTRUN tr; tr.pEdtEngine = this; @@ -1082,7 +1082,7 @@ std::vector CFDE_TextEditEngine::GetCharacterRectsInRange( break; } if (it == text_piece_info_.end()) - return {}; + return std::vector(); int32_t end_idx = start_idx + count - 1; std::vector rects; -- cgit v1.2.3