diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-08 15:31:47 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-08 15:31:47 -0800 |
commit | 9adfbb0920a258e916003b1ee9515e97879db82a (patch) | |
tree | 69c568cf9857ea028da91cc3a73f15a21a2c4c73 /core/include/fxcrt/fx_basic.h | |
parent | e5ae7226fc3ffad3f76995d31a0f6b2254d50656 (diff) | |
download | pdfium-9adfbb0920a258e916003b1ee9515e97879db82a.tar.xz |
Switch most min/max macros to std::min/max.
Fix lint errors along the way.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1567343002 .
Diffstat (limited to 'core/include/fxcrt/fx_basic.h')
-rw-r--r-- | core/include/fxcrt/fx_basic.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index fd35de906d..4a3b0ceb2f 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -7,6 +7,8 @@ #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_ #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ +#include <algorithm> + #include "fx_memory.h" #include "fx_stream.h" #include "fx_string.h" @@ -991,7 +993,7 @@ class CFX_SortListArray { return; } while (nCount > 0) { - int32_t temp_count = FX_MIN(nCount, FX_DATALIST_LENGTH); + int32_t temp_count = std::min(nCount, FX_DATALIST_LENGTH); DataList list; list.data = FX_Alloc2D(uint8_t, temp_count, unit); list.start = nStart; |