diff options
author | Lei Zhang <thestig@chromium.org> | 2017-10-04 11:14:52 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-04 18:33:06 +0000 |
commit | 643266cc8eb98ac680d838a2c5bc2dc8c25a9b08 (patch) | |
tree | 05d8f46b69e6ebca421945533163ced1cf40f397 | |
parent | 0181a84160e754717ebd26290628220f998ff66f (diff) | |
download | pdfium-643266cc8eb98ac680d838a2c5bc2dc8c25a9b08.tar.xz |
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>
-rw-r--r-- | xfa/fde/cfde_texteditengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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 @@ std::vector<CFX_RectF> CFDE_TextEditEngine::GetCharacterRectsInRange( 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; |