diff options
author | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
commit | 9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch) | |
tree | c97037f398d714665aefccb6eb54d0969ad7030c /core/src/fxcrt/fx_basic_plex.cpp | |
parent | 780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff) | |
download | pdfium-9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f.tar.xz |
XFA: clang-format all pdfium code.
No behavior change.
Generated by:
find . -name '*.cpp' -o -name '*.h' | \
grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \
xargs ../../buildtools/mac/clang-format -i
Then manually merged https://codereview.chromium.org/1269223002/
See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion.
BUG=none
Diffstat (limited to 'core/src/fxcrt/fx_basic_plex.cpp')
-rw-r--r-- | core/src/fxcrt/fx_basic_plex.cpp | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/core/src/fxcrt/fx_basic_plex.cpp b/core/src/fxcrt/fx_basic_plex.cpp index c9088bc93d..b01ad8a274 100644 --- a/core/src/fxcrt/fx_basic_plex.cpp +++ b/core/src/fxcrt/fx_basic_plex.cpp @@ -7,20 +7,21 @@ #include "../../include/fxcrt/fx_memory.h" #include "plex.h" -CFX_Plex* CFX_Plex::Create(CFX_Plex*& pHead, FX_DWORD nMax, FX_DWORD cbElement) -{ - CFX_Plex* p = (CFX_Plex*)FX_Alloc(uint8_t, sizeof(CFX_Plex) + nMax * cbElement); - p->pNext = pHead; - pHead = p; - return p; +CFX_Plex* CFX_Plex::Create(CFX_Plex*& pHead, + FX_DWORD nMax, + FX_DWORD cbElement) { + CFX_Plex* p = + (CFX_Plex*)FX_Alloc(uint8_t, sizeof(CFX_Plex) + nMax * cbElement); + p->pNext = pHead; + pHead = p; + return p; } -void CFX_Plex::FreeDataChain() -{ - CFX_Plex* p = this; - while (p != NULL) { - uint8_t* bytes = (uint8_t*)p; - CFX_Plex* pNext = p->pNext; - FX_Free(bytes); - p = pNext; - } +void CFX_Plex::FreeDataChain() { + CFX_Plex* p = this; + while (p != NULL) { + uint8_t* bytes = (uint8_t*)p; + CFX_Plex* pNext = p->pNext; + FX_Free(bytes); + p = pNext; + } } |