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 <dsinclair@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/xfa/fde/cfde_texteditengine.cpp b/xfa/fde/cfde_texteditengine.cpp
index a240132..2bcd1fc 100644
--- a/xfa/fde/cfde_texteditengine.cpp
+++ b/xfa/fde/cfde_texteditengine.cpp
@@ -926,7 +926,7 @@
std::vector<CFX_RectF> CFDE_TextEditEngine::GetCharRects(
const FDE_TEXTEDITPIECE& piece) {
if (piece.nCount < 1)
- return {};
+ return std::vector<CFX_RectF>();
FX_TXTRUN tr;
tr.pEdtEngine = this;
@@ -1082,7 +1082,7 @@
break;
}
if (it == text_piece_info_.end())
- return {};
+ return std::vector<CFX_RectF>();
int32_t end_idx = start_idx + count - 1;
std::vector<CFX_RectF> rects;