diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-07 16:35:13 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-07 23:56:10 +0000 |
commit | 746c28772e01675096800d8853aae33f94ed3d55 (patch) | |
tree | 2ce47901d8028f4e73db474ed6a4a36768463f14 /core/fxcrt/cfx_widestring.h | |
parent | c4a2b7518949df00651aa3513c93079f1968441e (diff) | |
download | pdfium-746c28772e01675096800d8853aae33f94ed3d55.tar.xz |
Create initializer-list ctor for strings.
Also use safe arithmetic for two-arg ctor.
Change-Id: I5d541d9b2d5fe5b939f4cc8c22cf034f5cb01176
Reviewed-on: https://pdfium-review.googlesource.com/3955
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_widestring.h')
-rw-r--r-- | core/fxcrt/cfx_widestring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_widestring.h b/core/fxcrt/cfx_widestring.h index 397a5dcee2..52cd65a2b7 100644 --- a/core/fxcrt/cfx_widestring.h +++ b/core/fxcrt/cfx_widestring.h @@ -8,6 +8,7 @@ #define CORE_FXCRT_CFX_WIDESTRING_H_ #include <functional> +#include <utility> #include "core/fxcrt/cfx_retain_ptr.h" #include "core/fxcrt/cfx_string_c_template.h" @@ -37,6 +38,7 @@ class CFX_WideString { explicit CFX_WideString(const CFX_WideStringC& str); CFX_WideString(const CFX_WideStringC& str1, const CFX_WideStringC& str2); + CFX_WideString(const std::initializer_list<CFX_WideStringC>& list); ~CFX_WideString(); |