summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_basic_bstring.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-03-30 13:51:31 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-30 21:19:09 +0000
commitbf9104d5825d9f62b59106d69edebb1b5bdd48da (patch)
treee273a4a0467b962f0eaaf8bf040e27e2c0e58f6b /core/fxcrt/fx_basic_bstring.cpp
parentbd9237eb346946b0caa291504c3a5f54e9b1bb3f (diff)
downloadpdfium-bf9104d5825d9f62b59106d69edebb1b5bdd48da.tar.xz
vswprintf() part 1: move code, create helper function.
Change-Id: Iec9c3bb850b1654c67ac3081e557842f1eafd604 Reviewed-on: https://pdfium-review.googlesource.com/3431 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_basic_bstring.cpp')
-rw-r--r--core/fxcrt/fx_basic_bstring.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/fxcrt/fx_basic_bstring.cpp b/core/fxcrt/fx_basic_bstring.cpp
index f0052b6968..1ce1ffa563 100644
--- a/core/fxcrt/fx_basic_bstring.cpp
+++ b/core/fxcrt/fx_basic_bstring.cpp
@@ -441,14 +441,7 @@ CFX_ByteString CFX_ByteString::FormatInteger(int i, uint32_t flags) {
void CFX_ByteString::FormatV(const char* pFormat, va_list argList) {
va_list argListSave;
-#if defined(__ARMCC_VERSION) || \
- (!defined(_MSC_VER) && (_FX_CPU_ == _FX_X64_ || _FX_CPU_ == _FX_IA64_ || \
- _FX_CPU_ == _FX_ARM64_)) || \
- defined(__native_client__)
- va_copy(argListSave, argList);
-#else
- argListSave = argList;
-#endif
+ FX_VA_COPY(argListSave, argList);
FX_STRSIZE nMaxLen = vsnprintf(nullptr, 0, pFormat, argList);
if (nMaxLen > 0) {
GetBuffer(nMaxLen);